diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-31 17:58:55 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-31 17:58:55 +0000 |
commit | f4bbe8f0deb8d1c36829acfc791d632d27805f30 (patch) | |
tree | e4a31ea96cd58ccccd9f762d48d6ac320ee826c8 /gtk/gtkstyle.c | |
parent | c09cc89317d222e54e98d4e2e9f2792de13897ec (diff) | |
download | gtk+-f4bbe8f0deb8d1c36829acfc791d632d27805f30.tar.gz |
Also intern static strings passed to g_object_set_data()
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 3cf0094bce..85b08f0989 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -6541,7 +6541,7 @@ style_unrealize_cursor_gcs (GtkStyle *style) gtk_gc_release (cursor_info->secondary_gc); g_free (cursor_info); - g_object_set_data (G_OBJECT (style), "gtk-style-cursor-info", NULL); + g_object_set_data (G_OBJECT (style), g_intern_static_string ("gtk-style-cursor-info"), NULL); } } @@ -6579,7 +6579,7 @@ get_insertion_cursor_gc (GtkWidget *widget, if (!cursor_info) { cursor_info = g_new (CursorInfo, 1); - g_object_set_data (G_OBJECT (widget->style), "gtk-style-cursor-info", cursor_info); + g_object_set_data (G_OBJECT (widget->style), g_intern_static_string ("gtk-style-cursor-info"), cursor_info); cursor_info->primary_gc = NULL; cursor_info->secondary_gc = NULL; cursor_info->for_type = G_TYPE_INVALID; |