aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_inwin.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-05-26 21:33:34 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-05-26 21:34:24 +0200
commit859b5a04236db40a3edecf4aa0162f0fe26cc818 (patch)
treea390714a0c5e97939a750ec4d80e9b91e8e79661 /src/bin/elementary/test_inwin.c
parentelm_inwin: set this widget as a redirect (diff)
downloadefl-859b5a04236db40a3edecf4aa0162f0fe26cc818.tar.gz
elementary_test: add a new inwin test
to show focusable widgets in the inwin
Diffstat (limited to 'src/bin/elementary/test_inwin.c')
-rw-r--r--src/bin/elementary/test_inwin.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/bin/elementary/test_inwin.c b/src/bin/elementary/test_inwin.c
index 9dae4c091d..94dfe63663 100644
--- a/src/bin/elementary/test_inwin.c
+++ b/src/bin/elementary/test_inwin.c
@@ -127,3 +127,35 @@ test_inwin2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
evas_object_resize(win, 320, 240);
evas_object_show(win);
}
+
+void
+test_inwin3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+{
+ Evas_Object *win, *inwin, *lb, *box;
+
+ win = elm_win_util_standard_add("inwin2", "InWin 2");
+ elm_win_autodel_set(win, EINA_TRUE);
+
+ inwin = elm_win_inwin_add(win);
+ elm_object_style_set(inwin, "minimal_vertical");
+ evas_object_show(inwin);
+
+ box = elm_box_add(win);
+ elm_win_inwin_content_set(inwin, box);
+ evas_object_show(box);
+
+ lb = elm_button_add(box);
+ elm_object_text_set(lb,
+ "Test BTN 1");
+ elm_box_pack_end(box, lb);
+ evas_object_show(lb);
+
+ lb = elm_button_add(box);
+ elm_object_text_set(lb,
+ "Test BTN 1");
+ elm_box_pack_end(box, lb);
+ evas_object_show(lb);
+
+ evas_object_resize(win, 320, 240);
+ evas_object_show(win);
+}