]> spindle.queued.net Git - midori/commitdiff
Connect to button press on folder menu items
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Dec 2009 14:41:47 +0000 (15:41 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 13 Dec 2009 14:41:47 +0000 (15:41 +0100)
katze/katze-arrayaction.c

index 82219a2f150c2bee41049ef70c230da50e98e29f..4186d609bf555a45bd7f95bde009a519c8283473 100644 (file)
@@ -360,12 +360,12 @@ katze_array_action_generate_menu (KatzeArrayAction* array_action,
         }
         else
         {
-            g_signal_connect (menuitem, "button-press-event",
-                G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
             /* we need the 'activate' signal as well for keyboard events */
             g_signal_connect (menuitem, "activate",
                 G_CALLBACK (katze_array_action_menu_activate_cb), array_action);
         }
+        g_signal_connect (menuitem, "button-press-event",
+            G_CALLBACK (katze_array_action_menu_button_press_cb), array_action);
         gtk_widget_show (menuitem);
     }
 }