summaryrefslogtreecommitdiff
path: root/src/bin/test_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/test_menu.c')
-rw-r--r--src/bin/test_menu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/test_menu.c b/src/bin/test_menu.c
index 65a2244c2..9f9fb10cb 100644
--- a/src/bin/test_menu.c
+++ b/src/bin/test_menu.c
@@ -5,6 +5,13 @@
5#ifndef ELM_LIB_QUICKLAUNCH 5#ifndef ELM_LIB_QUICKLAUNCH
6 6
7static void 7static void
8_menu_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
9 void *event_info EINA_UNUSED)
10{
11 printf("menu dismissed callback is called!\n");
12}
13
14static void
8_menu_show_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, 15_menu_show_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
9 void *event_info) 16 void *event_info)
10{ 17{
@@ -118,6 +125,8 @@ test_menu(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
118 evas_object_show(rect); 125 evas_object_show(rect);
119 126
120 menu = elm_menu_add(win); 127 menu = elm_menu_add(win);
128 evas_object_smart_callback_add(menu, "dismissed", _menu_dismissed_cb, NULL);
129
121 elm_menu_item_add(menu, NULL, NULL, "first item", NULL, NULL); 130 elm_menu_item_add(menu, NULL, NULL, "first item", NULL, NULL);
122 131
123 menu_it = elm_menu_item_add(menu, NULL, "mail-reply-all", "second item", 132 menu_it = elm_menu_item_add(menu, NULL, "mail-reply-all", "second item",