timeline: Rename the reverse property to auto-reverse
Other frameworks expose the same functionality as "auto-reverse", probably to match the cassette tape player. It actually makes sense for Clutter to follow suit.
This commit is contained in:
@@ -148,7 +148,7 @@ test_behave_main (int argc, char *argv[])
|
||||
/* Make a timeline */
|
||||
timeline = clutter_timeline_new (4000);
|
||||
clutter_timeline_set_loop (timeline, TRUE);
|
||||
clutter_timeline_set_reverse (timeline, TRUE);
|
||||
clutter_timeline_set_auto_reverse (timeline, TRUE);
|
||||
|
||||
/* Set an alpha func to power behaviour - ramp is constant rise */
|
||||
alpha = clutter_alpha_new_full (timeline, CLUTTER_LINEAR);
|
||||
|
@@ -755,7 +755,7 @@ test_layout_main (int argc, char *argv[])
|
||||
|
||||
main_timeline = clutter_timeline_new (2000);
|
||||
clutter_timeline_set_loop (main_timeline, TRUE);
|
||||
clutter_timeline_set_reverse (main_timeline, TRUE);
|
||||
clutter_timeline_set_auto_reverse (main_timeline, TRUE);
|
||||
g_signal_connect (main_timeline, "new-frame",
|
||||
G_CALLBACK (relayout_on_frame),
|
||||
NULL);
|
||||
|
@@ -221,6 +221,7 @@ test_threads_main (int argc, char *argv[])
|
||||
|
||||
timeline = clutter_timeline_new (3000);
|
||||
clutter_timeline_set_loop (timeline, TRUE);
|
||||
clutter_timeline_set_auto_reverse (timeline, TRUE);
|
||||
|
||||
alpha = clutter_alpha_new_full (timeline, CLUTTER_LINEAR);
|
||||
r_behaviour = clutter_behaviour_rotate_new (alpha,
|
||||
|
Reference in New Issue
Block a user