summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-07-09 15:46:31 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-07-09 15:46:31 +0200
commit9d9d3a650fb47d0af5976384d3ecdae410735543 (patch)
tree46b2c76e53b98f96b6c38c0017dbb2c81e5c60cd
parent2d874e2201201bb2b9577da7aea6d6235338d428 (diff)
Update
-rw-r--r--src/gui_main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui_main.c b/src/gui_main.c
index 06e2286..053e1bb 100644
--- a/src/gui_main.c
+++ b/src/gui_main.c
@@ -18,20 +18,19 @@ elm_main(int argc, char *argv[])
18 win = elm_win_util_standard_add("bla", "foo"); 18 win = elm_win_util_standard_add("bla", "foo");
19 evas_object_show(win); 19 evas_object_show(win);
20 20
21 /*sc = elm_scroller_add(win); 21 sc = elm_scroller_add(win);
22 evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 22 evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
23 evas_object_size_hint_align_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL); 23 evas_object_size_hint_align_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL);
24 evas_object_show(sc);*/ 24 elm_win_resize_object_add(win, sc);
25 evas_object_show(sc);
25 26
26 27 o = elm_button_add(sc);
27 o = elm_button_add(win);
28 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 28 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
29 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 29 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
30 elm_object_text_set(o, "Test"); 30 elm_object_text_set(o, "Test");
31 elm_object_content_set(sc, o); 31 elm_object_content_set(sc, o);
32 evas_object_show(o); 32 evas_object_show(o);
33 33
34 elm_win_resize_object_add(win, o);
35 34
36 evas_object_event_callback_add(win, EVAS_CALLBACK_KEY_DOWN, 35 evas_object_event_callback_add(win, EVAS_CALLBACK_KEY_DOWN,
37 _etui_doc_key_down_cb, NULL); 36 _etui_doc_key_down_cb, NULL);