summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_code.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-27 16:31:47 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-09-30 10:46:32 +0200
commit93d77015c4b0220ec9490e0855eef0e2f9eb4dc3 (patch)
treee1212f31700e3b3a93a7f465de161efe07023882 /src/bin/elementary/test_code.c
parent52d04bc5242642db89e052824e8d67bc3a410a0c (diff)
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
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_code.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/elementary/test_code.c b/src/bin/elementary/test_code.c
index 076ef6d..ca26ca6 100644
--- a/src/bin/elementary/test_code.c
+++ b/src/bin/elementary/test_code.c
@@ -6,16 +6,12 @@
6 6
7static Evas_Object *_test_code_win_create(const char *id, const char *name) 7static Evas_Object *_test_code_win_create(const char *id, const char *name)
8{ 8{
9 Evas_Object *win, *bg; 9 Evas_Object *win;
10 10
11 win = elm_win_add(NULL, id, ELM_WIN_BASIC); 11 win = elm_win_util_standard_add(id, name);
12 elm_win_title_set(win, name); 12 elm_win_title_set(win, name);
13 elm_win_autodel_set(win, EINA_TRUE); 13 elm_win_autodel_set(win, EINA_TRUE);
14 14
15 bg = elm_bg_add(win);
16 elm_win_resize_object_add(win, bg);
17 evas_object_show(bg);
18
19 evas_object_resize(win, 360 * elm_config_scale_get(), 220 * elm_config_scale_get()); 15 evas_object_resize(win, 360 * elm_config_scale_get(), 220 * elm_config_scale_get());
20 return win; 16 return win;
21} 17}