test_code: do not create a background by hand

the background here was wrong, it hasnt resizable hints, which means
that the whole object cannot be resized.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D10223
This commit is contained in:
Marcel Hollerbach 2019-09-27 16:31:47 +02:00 committed by Stefan Schmidt
parent 52d04bc524
commit 93d77015c4
1 changed files with 2 additions and 6 deletions

View File

@ -6,16 +6,12 @@
static Evas_Object *_test_code_win_create(const char *id, const char *name)
{
Evas_Object *win, *bg;
Evas_Object *win;
win = elm_win_add(NULL, id, ELM_WIN_BASIC);
win = elm_win_util_standard_add(id, name);
elm_win_title_set(win, name);
elm_win_autodel_set(win, EINA_TRUE);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
evas_object_resize(win, 360 * elm_config_scale_get(), 220 * elm_config_scale_get());
return win;
}