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,
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);
ClutterButtonEvent *event,
ClutterActor *rectangle)
{
- if (event->button == 3)
+ if (event->button == CLUTTER_BUTTON_SECONDARY)
{
gchar *text;
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;