From: Emmanuele Bassi Date: Wed, 28 Mar 2012 11:46:30 +0000 (+0100) Subject: interactive/transitions: Jump to middle-click coordinates X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2355b57aabd984013b4ec5ec76b192ff8065ef65;p=profile%2Fivi%2Fclutter.git interactive/transitions: Jump to middle-click coordinates Middle click will update an existing transition while in flight, and skip it. --- diff --git a/tests/interactive/test-transitions.c b/tests/interactive/test-transitions.c index 4606913..47b8ba2 100644 --- a/tests/interactive/test-transitions.c +++ b/tests/interactive/test-transitions.c @@ -75,6 +75,10 @@ on_button_press (ClutterActor *actor, clutter_text_set_text (CLUTTER_TEXT (easing_mode_label), text); g_free (text); } + else if (event->button == CLUTTER_BUTTON_MIDDLE) + { + clutter_actor_set_position (rectangle, event->x, event->y); + } else if (event->button == CLUTTER_BUTTON_PRIMARY) { ClutterAnimationMode cur_mode; @@ -92,7 +96,7 @@ on_button_press (ClutterActor *actor, clutter_actor_restore_easing_state (rectangle); } - return TRUE; + return CLUTTER_EVENT_STOP; } static gboolean