From b3adbbe5e7240b4ea497fd5cc9ff0d67a5b5a746 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 15 Oct 2016 21:33:11 +0100 Subject: 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*`. --- gtk/gtktextsegment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtktextsegment.h') 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 -- cgit v1.2.1