diff options
Diffstat (limited to 'lib/egg/egg-action.c')
-rw-r--r-- | lib/egg/egg-action.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/egg/egg-action.c b/lib/egg/egg-action.c index 360ba358e..89886b575 100644 --- a/lib/egg/egg-action.c +++ b/lib/egg/egg-action.c @@ -560,11 +560,14 @@ disconnect_proxy (EggAction *action, GtkWidget *proxy) G_CALLBACK (egg_action_sync_stock_id), proxy); /* menu item specific synchronisers ... */ - g_signal_handlers_disconnect_by_func (action, - G_CALLBACK (egg_action_sync_label), - proxy); + if (GTK_IS_MENU_ITEM (proxy)) + { + g_signal_handlers_disconnect_by_func (action, + G_CALLBACK (egg_action_sync_label), + proxy); - gtk_menu_item_set_accel_path (GTK_MENU_ITEM (proxy), NULL); + gtk_menu_item_set_accel_path (GTK_MENU_ITEM (proxy), NULL); + } /* toolbar button specific synchronisers ... */ g_signal_handlers_disconnect_by_func (action, |