summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-06-19 02:07:47 +0000
committerTim Janik <timj@src.gnome.org>1998-06-19 02:07:47 +0000
commit3c90c2cd536b7ccec7189be22004fbfcc92c4c87 (patch)
tree5247ab6ff735d36d31fac97b3b6733ad9aa64d62 /gtk/gtkbindings.c
parent913831b26f3b4b0a69dce8574017a78828e93b83 (diff)
downloadgtk+-3c90c2cd536b7ccec7189be22004fbfcc92c4c87.tar.gz
replaced some gtk_object_data_force_id with g_quark_from_static_string
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org> * gtk/gtkaccelgroup.c: * gtk/gtkbindings.c: * gtk/gtkcontainer.c: * gtk/gtkitemfactory.c: * gtk/gtkobject.c: * gtk/gtksignal.c: * gtk/gtkwidget.c: replaced some gtk_object_data_force_id with g_quark_from_static_string calls to save memory. * gtk/gtkobject.c (gtk_object_set_data_by_id_full): invoke the destroy function _after_ the new data has been setup. minor changes to object data functions to feature the GQuark type.
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r--gtk/gtkbindings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index ad75a0228b..27864fed49 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -35,7 +35,7 @@
static GHashTable *binding_entry_hash_table = NULL;
static GSList *binding_set_list = NULL;
static const gchar *key_class_binding_set = "gtk-class-binding-set";
-static guint key_id_class_binding_set = 0;
+static GQuark key_id_class_binding_set = 0;
/* --- functions --- */
@@ -424,7 +424,7 @@ gtk_binding_set_by_class (gpointer object_class)
g_return_val_if_fail (GTK_IS_OBJECT_CLASS (class), NULL);
if (!key_id_class_binding_set)
- key_id_class_binding_set = g_dataset_force_id (key_class_binding_set);
+ key_id_class_binding_set = g_quark_from_static_string (key_class_binding_set);
binding_set = g_dataset_id_get_data (class, key_id_class_binding_set);