summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-04 16:11:00 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-04 16:12:46 -0400
commit2a2125a7eaf4e1da8abefda288bf4c1d783bca5b (patch)
tree3086e6ef0cd0fbbee4c2029feec2c1651b6a73b4
parent963fedcea7ee43f20089deb17b93790ede139178 (diff)
elm_test: reset win stack static vars when window is closed
-rw-r--r--src/bin/elementary/test_win_stack.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/elementary/test_win_stack.c b/src/bin/elementary/test_win_stack.c
index 23df1bf16b..77b88b89af 100644
--- a/src/bin/elementary/test_win_stack.c
+++ b/src/bin/elementary/test_win_stack.c
@@ -91,12 +91,20 @@ _bt_pressed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
91 evas_object_show(win); 91 evas_object_show(win);
92} 92}
93 93
94static void
95_del()
96{
97 level = 0;
98 popto_win = NULL;
99}
100
94void 101void
95test_win_stack(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 102test_win_stack(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
96{ 103{
97 Evas_Object *bg, *bx, *bt, *lb, *win; 104 Evas_Object *bg, *bx, *bt, *lb, *win;
98 105
99 win = elm_win_add(NULL, "window-stack", ELM_WIN_BASIC); 106 win = elm_win_add(NULL, "window-stack", ELM_WIN_BASIC);
107 evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, _del, NULL);
100 efl_ui_win_stack_base_set(win, EINA_TRUE); 108 efl_ui_win_stack_base_set(win, EINA_TRUE);
101 elm_win_title_set(win, "Window Stack"); 109 elm_win_title_set(win, "Window Stack");
102 elm_win_autodel_set(win, EINA_TRUE); 110 elm_win_autodel_set(win, EINA_TRUE);