]> spindle.queued.net Git - midori/commitdiff
Connect right-click correctly on bookmarkbar items
authorAlexander Butenko <a.butenka@gmail.com>
Fri, 25 Jun 2010 15:55:04 +0000 (11:55 -0400)
committerChristian Dywan <christian@twotoasts.de>
Sat, 26 Jun 2010 19:58:58 +0000 (21:58 +0200)
midori/midori-browser.c

index 4fbbfb3e9df28ed35a085781c5cc850df6294fb5..304ec25ed954808bbbf3e03c116433b87e299568 100644 (file)
@@ -6499,13 +6499,13 @@ midori_bookmarkbar_insert_item (GtkWidget* toolbar,
     {
         GtkWidget* child = gtk_bin_get_child (GTK_BIN (toolitem));
         g_object_set_data (G_OBJECT (child), "KatzeItem", item);
+        g_signal_connect (child, "button-press-event",
+            G_CALLBACK (midori_bookmarkbar_item_button_press_event_cb),
+            browser);
     }
     else /* Separator */
         gtk_tool_item_set_use_drag_window (toolitem, TRUE);
 
-    g_signal_connect (toolitem, "button-press-event",
-        G_CALLBACK (midori_bookmarkbar_item_button_press_event_cb),
-        browser);
     gtk_widget_show (GTK_WIDGET (toolitem));
     gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
 }