]> Pileus Git - ~andy/gtk/commitdiff
When removing keys from the key hash, reinsert the right list back into
authorOwen Taylor <otaylor@redhat.com>
Thu, 14 Mar 2002 16:20:42 +0000 (16:20 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 14 Mar 2002 16:20:42 +0000 (16:20 +0000)
Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
        removing keys from the key hash, reinsert the right list
        back into the hash. (Dave Camp, #74571)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkkeyhash.c

index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 99cc98929089301c73a67ae2e6e033f4f7e70c19..72695c7aae923ecc963c94ee4898a7171f11a067 100644 (file)
@@ -1,3 +1,9 @@
+Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
+       removing keys from the key hash, reinsert the right list
+       back into the hash. (Dave Camp, #74571)
+
 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
index 642429524c080a116467dc4feba1bed44ae13280..bbf113926a0740cfc7ba046e5343590a3ae09b02 100644 (file)
@@ -224,12 +224,12 @@ _gtk_key_hash_remove_entry (GtkKeyHash *key_hash,
                                                  GUINT_TO_POINTER (entry->keys[i].keycode));
 
          GSList *new_keys = g_slist_remove (old_keys, entry);
-         if (old_keys != new_keys)
+         if (new_keys != old_keys)
            {
-             if (old_keys)
+             if (new_keys)
                g_hash_table_insert (key_hash->keycode_hash,
                                     GUINT_TO_POINTER (entry->keys[i].keycode),
-                                    old_keys);
+                                    new_keys);
              else
                g_hash_table_remove (key_hash->keycode_hash,
                                     GUINT_TO_POINTER (entry->keys[i].keycode));