mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
text: Constify field of GtkTextLineSegmentClass
We only use it internally for statically allocated structures, with static strings, so there's no reason for it to be a `char*`.
This commit is contained in:
parent
1f132607f7
commit
b3adbbe5e7
@ -94,7 +94,7 @@ typedef void (*GtkTextSegCheckFunc) (GtkTextLineSegment *seg
|
||||
GtkTextLine *line);
|
||||
|
||||
struct _GtkTextLineSegmentClass {
|
||||
char *name; /* Name of this kind of segment. */
|
||||
const char *name; /* Name of this kind of segment. */
|
||||
gboolean leftGravity; /* If a segment has zero size (e.g. a
|
||||
* mark or tag toggle), does it
|
||||
* attach to character to its left
|
||||
|
Loading…
Reference in New Issue
Block a user