]> spindle.queued.net Git - midori/commitdiff
Popup Extensions menu on button release, not press
authorChristian Dywan <christian@twotoasts.de>
Mon, 8 Jun 2009 23:11:42 +0000 (01:11 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 8 Jun 2009 23:11:42 +0000 (01:11 +0200)
Although menus should open on button press, we have to use
release if we want the treeview selection to be correct.

panels/midori-extensions.c

index 40c5b3dd4959dfe2cd6d82670261347cfe436913..87bd2d885be98dc752f4b7596bcbf1b9b250eba7 100644 (file)
@@ -398,9 +398,9 @@ midori_extensions_popup_menu_cb (GtkWidget*        widget,
 }
 
 static gboolean
-midori_extensions_button_press_event_cb (GtkWidget*         widget,
-                                         GdkEventButton*    event,
-                                         MidoriExtensions*  extensions)
+midori_extensions_button_release_event_cb (GtkWidget*         widget,
+                                           GdkEventButton*    event,
+                                           MidoriExtensions*  extensions)
 {
     GtkTreeModel* model;
     GtkTreeIter iter;
@@ -474,8 +474,8 @@ midori_extensions_init (MidoriExtensions* extensions)
     g_object_connect (extensions->treeview,
         "signal::row-activated",
         midori_extensions_treeview_row_activated_cb, extensions,
-        "signal::button-press-event",
-        midori_extensions_button_press_event_cb, extensions,
+        "signal::button-release-event",
+        midori_extensions_button_release_event_cb, extensions,
         "signal::popup-menu",
         midori_extensions_popup_menu_cb, extensions,
         NULL);