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/gtkcombo.c | |
parent | c09cc89317d222e54e98d4e2e9f2792de13897ec (diff) | |
download | gtk+-f4bbe8f0deb8d1c36829acfc791d632d27805f30.tar.gz |
Also intern static strings passed to g_object_set_data()
Diffstat (limited to 'gtk/gtkcombo.c')
-rw-r--r-- | gtk/gtkcombo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcombo.c b/gtk/gtkcombo.c index 0468049a3a..e7963f9609 100644 --- a/gtk/gtkcombo.c +++ b/gtk/gtkcombo.c @@ -366,7 +366,7 @@ gtk_combo_func (GtkListItem * li) GtkWidget *label; gchar *ltext = NULL; - ltext = g_object_get_data (G_OBJECT (li), gtk_combo_string_key); + ltext = g_object_get_data (G_OBJECT (li), g_intern_static_string (gtk_combo_string_key)); if (!ltext) { label = GTK_BIN (li)->child; @@ -1151,7 +1151,7 @@ gtk_combo_set_item_string (GtkCombo * combo, GtkItem * item, const gchar * item_ g_return_if_fail (GTK_IS_COMBO (combo)); g_return_if_fail (item != NULL); - g_object_set_data_full (G_OBJECT (item), gtk_combo_string_key, + g_object_set_data_full (G_OBJECT (item), g_intern_static_string (gtk_combo_string_key), g_strdup (item_value), g_free); } |