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/gtktooltips.c | |
parent | c09cc89317d222e54e98d4e2e9f2792de13897ec (diff) | |
download | gtk+-f4bbe8f0deb8d1c36829acfc791d632d27805f30.tar.gz |
Also intern static strings passed to g_object_set_data()
Diffstat (limited to 'gtk/gtktooltips.c')
-rw-r--r-- | gtk/gtktooltips.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index b8ba8d4062..12a2761dc7 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -148,7 +148,7 @@ gtk_tooltips_destroy_data (GtkTooltipsData *tooltipsdata) gtk_tooltips_widget_remove, tooltipsdata); - g_object_set_data (G_OBJECT (tooltipsdata->widget), tooltips_data_key, NULL); + g_object_set_data (G_OBJECT (tooltipsdata->widget), g_intern_static_string (tooltips_data_key), NULL); g_object_unref (tooltipsdata->widget); g_free (tooltipsdata); } @@ -361,7 +361,7 @@ gtk_tooltips_set_tip (GtkTooltips *tooltips, G_CALLBACK (gtk_tooltips_event_handler), tooltipsdata); - g_object_set_data (G_OBJECT (widget), tooltips_data_key, + g_object_set_data (G_OBJECT (widget), g_intern_static_string (tooltips_data_key), tooltipsdata); g_signal_connect (widget, "unmap", @@ -415,7 +415,7 @@ gtk_tooltips_draw_tips (GtkTooltips *tooltips) style = tooltips->tip_window->style; widget = tooltips->active_tips_data->widget; - g_object_set_data (G_OBJECT (tooltips->tip_window), tooltips_info_key, + g_object_set_data (G_OBJECT (tooltips->tip_window), g_intern_static_string (tooltips_info_key), tooltips); keyboard_mode = get_keyboard_mode (widget); @@ -588,7 +588,7 @@ start_keyboard_mode (GtkWidget *widget) { GtkWidget *focus = GTK_WINDOW (toplevel)->focus_widget; - g_object_set_data (G_OBJECT (toplevel), "gtk-tooltips-keyboard-mode", GUINT_TO_POINTER (TRUE)); + g_object_set_data (G_OBJECT (toplevel), g_intern_static_string ("gtk-tooltips-keyboard-mode"), GUINT_TO_POINTER (TRUE)); if (focus) gtk_tooltips_show_tip (focus); @@ -605,7 +605,7 @@ stop_keyboard_mode (GtkWidget *widget) if (focus) gtk_tooltips_hide_tip (focus); - g_object_set_data (G_OBJECT (toplevel), "gtk-tooltips-keyboard-mode", GUINT_TO_POINTER (FALSE)); + g_object_set_data (G_OBJECT (toplevel), g_intern_static_string ("gtk-tooltips-keyboard-mode"), GUINT_TO_POINTER (FALSE)); } } |