projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cddbd
)
drag-action: Use the symbolic constants for the button
author
Emmanuele Bassi
<ebassi@gnome.org>
Fri, 27 Jan 2012 09:46:10 +0000
(09:46 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Fri, 27 Jan 2012 09:46:10 +0000
(09:46 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=668692
clutter/clutter-drag-action.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-drag-action.c
b/clutter/clutter-drag-action.c
index
be5752f
..
f03280f
100644
(file)
--- 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)