diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-27 16:31:47 +0200 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-10-04 09:54:06 -0400 |
commit | 3eeb4eebe447847ce166bc0af238f47917229187 (patch) | |
tree | 9091be4498ce318813787d3c4a88446dfa586876 | |
parent | 5e883dcc7a05ad18a2f80c58af57cc0a5fd6b7ef (diff) | |
download | efl-3eeb4eebe447847ce166bc0af238f47917229187.tar.gz |
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
-rw-r--r-- | src/bin/elementary/test_code.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/elementary/test_code.c b/src/bin/elementary/test_code.c index 076ef6d27d..ca26ca6cd6 100644 --- a/src/bin/elementary/test_code.c +++ b/src/bin/elementary/test_code.c @@ -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; } |