tests: Update to use the symbolic button names

https://bugzilla.gnome.org/show_bug.cgi?id=668692
This commit is contained in:
Emmanuele Bassi 2012-01-27 09:47:25 +00:00
parent 54c9257f28
commit ccc70a911d
3 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ button_release_event (ClutterActor *actor,
button = clutter_event_get_button (event);
if (button == 1)
if (button == CLUTTER_BUTTON_PRIMARY)
{
clutter_box_layout_get_fill (layout, actor, &xfill, &yfill);
clutter_box_layout_set_fill (layout, actor,

View File

@ -232,8 +232,8 @@ on_button_press (ClutterActor *stage, ClutterButtonEvent *event,
data->current_clip.y1 = data->current_clip.y2 = event->y;
data->current_clip.type
= event->button == 1 ? CLIP_RECTANGLE
: event->button == 2 ? CLIP_SHAPES
= event->button == CLUTTER_BUTTON_PRIMARY ? CLIP_RECTANGLE
: event->button == CLUTTER_BUTTON_MIDDLE ? CLIP_SHAPES
: CLIP_ROTATED_RECTANGLE;
clutter_actor_queue_redraw (stage);

View File

@ -82,7 +82,7 @@ on_button_press (ClutterActor *actor,
ClutterButtonEvent *event,
ClutterActor *rectangle)
{
if (event->button == 3)
if (event->button == CLUTTER_BUTTON_SECONDARY)
{
gchar *text;
@ -100,7 +100,7 @@ on_button_press (ClutterActor *actor,
clutter_text_set_text (CLUTTER_TEXT (easing_mode_label), text);
g_free (text);
}
else if (event->button == 1)
else if (event->button == CLUTTER_BUTTON_PRIMARY)
{
ClutterAnimation *animation;
ClutterAnimationMode cur_mode;