From dc9cb532d9d87a0ee17cb5e31b8eefd526b657a2 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Fri, 25 Jun 2010 11:55:04 -0400 Subject: [PATCH] Connect right-click correctly on bookmarkbar items --- midori/midori-browser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 4fbbfb3e..304ec25e 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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); }