forked from enlightenment/efl
examples: Call window object show after its content creation.
Window show call triggers all smart objects' smart calculation and in case of X11, XMapWindow() is called directly. Also moved resize of window accordingly.
This commit is contained in:
parent
2782c35fbc
commit
e01e7683e6
|
@ -93,6 +93,7 @@ elm_main(int argc, char **argv)
|
|||
evas_object_show(win);
|
||||
|
||||
elm_run();
|
||||
elm_shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1244,15 +1244,13 @@ elm_main(int argc, char **argv)
|
|||
light_toggle_setup(control_layout);
|
||||
zoom_slider_setup(control_layout);
|
||||
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
/* Start rotating earth */
|
||||
animator = ecore_animator_add(animate_scene, mesh_node);
|
||||
|
||||
printf ("Enter main loop\n");
|
||||
elm_run();
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
elm_run();
|
||||
elm_shutdown();
|
||||
sphere_fini();
|
||||
|
||||
|
|
|
@ -299,8 +299,6 @@ elm_main(int argc, char **argv)
|
|||
|
||||
win = elm_win_util_standard_add("evas3d-object-button", "A button on the 3d object");
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
evas = evas_object_evas_get(win);
|
||||
|
||||
|
@ -329,6 +327,9 @@ elm_main(int argc, char **argv)
|
|||
/* Add animation timer callback. */
|
||||
ecore_timer_add(0.016, _animate_scene, &data);
|
||||
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
/* Enter main loop. */
|
||||
elm_run();
|
||||
|
||||
|
|
|
@ -276,10 +276,7 @@ elm_main(int argc, char **argv)
|
|||
|
||||
win = elm_win_util_standard_add("evas3d-scene-button", "3d object on the button");
|
||||
if (!win) return 0;
|
||||
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
evas = evas_object_evas_get(win);
|
||||
if (!evas) return 0;
|
||||
|
@ -308,6 +305,9 @@ elm_main(int argc, char **argv)
|
|||
/* Add animation timer callback. */
|
||||
ecore_timer_add(0.016, _animate_scene, &data);
|
||||
|
||||
evas_object_resize(win, WIDTH, HEIGHT);
|
||||
evas_object_show(win);
|
||||
|
||||
/* Enter main loop. */
|
||||
elm_run();
|
||||
|
||||
|
|
Loading…
Reference in New Issue