[frogr] Fix issue selecting pictures in Mac OS X



commit 09084237aeeff3e1336f55f89ac58afbf628d993
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Sat May 26 17:39:27 2012 +0200

    Fix issue selecting pictures in Mac OS X

 src/frogr-main-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 36423c0..60aaaf6 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -617,9 +617,9 @@ _on_icon_view_button_press_event (GtkWidget *widget,
           || ((event->button == 3) && !path_selected))
         {
           if (!(event->state & GDK_SHIFT_MASK)
-              && !(event->state & GDK_PRIMARY_MODIFIER))
+              && !(event->state & GDK_CONTROL_MASK))
             {
-              /* Deselect all items if not pressing Ctrl/Meta or shift */
+              /* Deselect all items if not pressing Ctrl or shift */
               gtk_icon_view_unselect_all (GTK_ICON_VIEW (priv->icon_view));
             }
 
@@ -632,7 +632,7 @@ _on_icon_view_button_press_event (GtkWidget *widget,
       if ((event->button == 1)                   /* left button */
           && (event->type == GDK_2BUTTON_PRESS ) /* doubleclick */
           && !(event->state & GDK_SHIFT_MASK)    /*  not shift  */
-          && !(event->state & GDK_PRIMARY_MODIFIER)) /*  not Ctrl/Meta */
+          && !(event->state & GDK_CONTROL_MASK)) /*  not Ctrl */
         {
           /* edit selected item */
           _edit_selected_pictures (mainview);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]