forked from enlightenment/efl
exit if window cresation failes in tests.
This commit is contained in:
parent
d062cc2004
commit
ee51f840ad
|
@ -3474,6 +3474,7 @@ win_create(void)
|
|||
Evas_Object *win, *bx0;
|
||||
|
||||
win = elm_win_util_standard_add("main", "Elementary Config");
|
||||
if (!win) exit(1);
|
||||
ecore_event_handler_add(ELM_EVENT_CONFIG_ALL_CHANGED, _config_all_changed,
|
||||
win);
|
||||
evas_object_smart_callback_add(win, "delete,request", config_exit, NULL);
|
||||
|
|
|
@ -371,6 +371,7 @@ my_win_main(char *autorun, Eina_Bool test_win_only)
|
|||
* You can also set the title of the window at the same time.
|
||||
* ex) win = elm_win_util_standard_add("main", "Elementary Tests"); */
|
||||
win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
|
||||
if (!win) exit(1);
|
||||
/* Set the title of the window - This is in the titlebar. */
|
||||
elm_win_title_set(win, "Elementary Tests");
|
||||
|
||||
|
|
Loading…
Reference in New Issue