diff options
Diffstat (limited to 'src/ephy-go-action.c')
-rw-r--r-- | src/ephy-go-action.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ephy-go-action.c b/src/ephy-go-action.c index bf8ec1d2f..449b85367 100644 --- a/src/ephy-go-action.c +++ b/src/ephy-go-action.c @@ -85,9 +85,12 @@ connect_proxy (GtkAction *action, { GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy); - g_signal_connect_object (GTK_BIN (proxy)->child, "clicked", - G_CALLBACK (gtk_action_activate), action, - G_CONNECT_SWAPPED); + if (GTK_IS_TOOL_ITEM (proxy)) + { + g_signal_connect_object (GTK_BIN (proxy)->child, "clicked", + G_CALLBACK (gtk_action_activate), action, + G_CONNECT_SWAPPED); + } } static void |