]> Pileus Git - ~andy/gtk/commitdiff
Skip update of accelerator child node if it has no associated action.
authorChristian Neumair <cneumair@gnome.org>
Mon, 7 Jul 2008 23:17:40 +0000 (23:17 +0000)
committerChristian Neumair <cneumair@src.gnome.org>
Mon, 7 Jul 2008 23:17:40 +0000 (23:17 +0000)
2008-07-08  Christian Neumair  <cneumair@gnome.org>

* gtk/gtkuimanager.c (update_node):
Skip update of accelerator child node if it has no associated action.
Fixes #541950.

svn path=/trunk/; revision=20811

ChangeLog
gtk/gtkuimanager.c

index f7f855bb623fa9a24f3917ee8c99c5fc898f4af3..4c763940cfd1304543b459583addecd3102312e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-08  Christian Neumair  <cneumair@gnome.org>
+
+       * gtk/gtkuimanager.c (update_node):
+       Skip update of accelerator child node if it has no associated action.
+       Fixes #541950.
+
 2008-07-07  Cody Russell  <bratsche@gnome.org>
 
        Bug 541964 – [Win32] Setting modal hint to current value might confuse the stack
index 256e416e1950b9814e651f69a006fe3df0dcc0e7..33c71efbc6dff723daac11b301329bef78462a4b 100644 (file)
@@ -2736,7 +2736,7 @@ update_node (GtkUIManager *self,
        gtk_widget_destroy (info->proxy);
       if (info->extra)
        gtk_widget_destroy (info->extra);
-      if (info->type == NODE_TYPE_ACCELERATOR)
+      if (info->type == NODE_TYPE_ACCELERATOR && info->action != NULL)
        gtk_action_disconnect_accelerator (info->action);
       free_node (node);
       g_node_destroy (node);