[clutter] drag-action: Use the symbolic constants for the button



commit 12a79a66d8f3466084088389f111729f0cc834b1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jan 27 09:46:10 2012 +0000

    drag-action: Use the symbolic constants for the button
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668692

 clutter/clutter-drag-action.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-drag-action.c b/clutter/clutter-drag-action.c
index be5752f..f03280f 100644
--- a/clutter/clutter-drag-action.c
+++ b/clutter/clutter-drag-action.c
@@ -367,7 +367,8 @@ on_button_press (ClutterActor      *actor,
   if (!clutter_actor_meta_get_enabled (CLUTTER_ACTOR_META (action)))
     return CLUTTER_EVENT_PROPAGATE;
 
-  if (clutter_event_get_button (event) != 1)
+  /* dragging is only performed using the primary button */
+  if (clutter_event_get_button (event) != CLUTTER_BUTTON_PRIMARY)
     return CLUTTER_EVENT_PROPAGATE;
 
   if (priv->stage == NULL)



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