aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_transit.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-10-26 08:12:15 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-10-26 08:12:15 +0000
commitf80e0f1214920ca22f7274a688b13d6b0458aea7 (patch)
treec68ddd28d6ff04bf7335380d7888d0d3219b5b6a /legacy/elementary/src/bin/test_transit.c
parentFrom: Jaehwan Kim <jaehwan.kim.neo@gmail.com> (diff)
downloadefl-f80e0f1214920ca22f7274a688b13d6b0458aea7.tar.gz
transit tests really should show wiin last and resize last.
SVN revision: 64408
Diffstat (limited to 'legacy/elementary/src/bin/test_transit.c')
-rw-r--r--legacy/elementary/src/bin/test_transit.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/legacy/elementary/src/bin/test_transit.c b/legacy/elementary/src/bin/test_transit.c
index 5c23418b6c..2ee8430ba1 100644
--- a/legacy/elementary/src/bin/test_transit.c
+++ b/legacy/elementary/src/bin/test_transit.c
@@ -286,7 +286,6 @@ test_transit2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit2", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 2");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 400, 400);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -300,6 +299,7 @@ test_transit2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
evas_object_resize(bt, 100, 50);
evas_object_smart_callback_add(bt, "clicked", _transit_resizing, NULL);
+ evas_object_resize(win, 400, 400);
evas_object_show(win);
}
@@ -312,7 +312,6 @@ test_transit3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit3", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 3");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -330,6 +329,7 @@ test_transit3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
evas_object_move(bt2, 50, 50);
evas_object_resize(bt2, 200, 200);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_flip, bt2);
@@ -345,7 +345,6 @@ test_transit4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit4", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 4");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -360,6 +359,7 @@ test_transit4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
evas_object_smart_callback_add(bt, "clicked", _transit_zoom, NULL);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
}
@@ -373,7 +373,6 @@ test_transit5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit5", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 5");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -403,6 +402,7 @@ test_transit5(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_blend, bt2);
@@ -419,7 +419,6 @@ test_transit6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit6", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 6");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 300, 300);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -449,6 +448,7 @@ test_transit6(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
+ evas_object_resize(win, 300, 300);
evas_object_show(win);
evas_object_smart_callback_add(bt, "clicked", _transit_fade, bt2);
@@ -499,8 +499,6 @@ test_transit8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit8", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 8");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 400, 400);
- evas_object_show(win);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -525,6 +523,9 @@ test_transit8(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
elm_transit_duration_set(trans, 5.0);
elm_transit_repeat_times_set(trans, -1);
elm_transit_go(trans);
+
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
}
/* Chain Transit Effect */
@@ -537,8 +538,6 @@ test_transit9(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
win = elm_win_add(NULL, "transit9", ELM_WIN_BASIC);
elm_win_title_set(win, "Transit 9");
elm_win_autodel_set(win, EINA_TRUE);
- evas_object_resize(win, 400, 400);
- evas_object_show(win);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
@@ -600,6 +599,9 @@ test_transit9(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
elm_transit_duration_set(trans4, 1);
elm_transit_objects_final_state_keep_set(trans4, EINA_TRUE);
elm_transit_chain_transit_add(trans3, trans4);
+
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
}