diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-03 15:50:30 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-03 15:50:30 +0000 |
commit | 8de7c8b76121ac968f674679a8a66e111fcb28a1 (patch) | |
tree | ef3a38dc7339be1443eb5d4a604468d87fa7bb33 /gtk/gtktextsegment.c | |
parent | 0351d5671ddf406de9cceb746e95a48a61be45be (diff) | |
download | gtk+-8de7c8b76121ac968f674679a8a66e111fcb28a1.tar.gz |
Fix a warning.
* gtk/gtktextlayout.c: Fix a warning.
* gtk/gtktextsegment.h:
* gtk/gtktextsegment.c:
* gtk/gtktextchild.c:
* gtk/gtktextbtree.c:
* gtk/gtktextmark.c:
* gtk/gtktexttypes.h: Make the segment class pointers const.
* gtk/gtktextbufferserialize.c: Make parser struct const.
* gtk/gtkuimanager.c: Make parser struct const.
Diffstat (limited to 'gtk/gtktextsegment.c')
-rw-r--r-- | gtk/gtktextsegment.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktextsegment.c b/gtk/gtktextsegment.c index 3b961ad66b..71c4e16dd8 100644 --- a/gtk/gtktextsegment.c +++ b/gtk/gtktextsegment.c @@ -196,7 +196,7 @@ _gtk_char_segment_new (const gchar *text, guint len) g_assert (gtk_text_byte_begins_utf8_char (text)); seg = g_malloc (CSEG_SIZE (len)); - seg->type = >k_text_char_type; + seg->type = (GtkTextLineSegmentClass *)>k_text_char_type; seg->next = NULL; seg->byte_count = len; memcpy (seg->body.chars, text, len); @@ -590,7 +590,7 @@ toggle_segment_line_change_func (segPtr, line) */ -GtkTextLineSegmentClass gtk_text_char_type = { +const GtkTextLineSegmentClass gtk_text_char_type = { "character", /* name */ 0, /* leftGravity */ char_segment_split_func, /* splitFunc */ @@ -605,7 +605,7 @@ GtkTextLineSegmentClass gtk_text_char_type = { * range: */ -GtkTextLineSegmentClass gtk_text_toggle_on_type = { +const GtkTextLineSegmentClass gtk_text_toggle_on_type = { "toggleOn", /* name */ 0, /* leftGravity */ NULL, /* splitFunc */ @@ -620,7 +620,7 @@ GtkTextLineSegmentClass gtk_text_toggle_on_type = { * range: */ -GtkTextLineSegmentClass gtk_text_toggle_off_type = { +const GtkTextLineSegmentClass gtk_text_toggle_off_type = { "toggleOff", /* name */ 1, /* leftGravity */ NULL, /* splitFunc */ |