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:
Emmanuele Bassi 2016-10-15 21:33:11 +01:00
parent 1f132607f7
commit b3adbbe5e7

View File

@ -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