diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-10-15 21:33:11 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-10-17 11:44:11 +0100 |
commit | b3adbbe5e7240b4ea497fd5cc9ff0d67a5b5a746 (patch) | |
tree | ed5c7f329222ba8062c7151d0b73f9111b64d8e2 /gtk/gtktextsegment.h | |
parent | 1f132607f78b9ccee2c6c598baa722eb0d25e4d0 (diff) | |
download | gtk+-b3adbbe5e7240b4ea497fd5cc9ff0d67a5b5a746.tar.gz |
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*`.
Diffstat (limited to 'gtk/gtktextsegment.h')
-rw-r--r-- | gtk/gtktextsegment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextsegment.h b/gtk/gtktextsegment.h index 5621bdee84..4ea125f7c9 100644 --- a/gtk/gtktextsegment.h +++ b/gtk/gtktextsegment.h @@ -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 |