drag-action: Use the symbolic constants for the button

https://bugzilla.gnome.org/show_bug.cgi?id=668692
This commit is contained in:
Emmanuele Bassi 2012-01-27 09:46:10 +00:00
parent 60cddbd28e
commit 12a79a66d8

View File

@ -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)