summaryrefslogtreecommitdiff
path: root/src/bin/test_hover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/test_hover.c')
-rw-r--r--src/bin/test_hover.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/test_hover.c b/src/bin/test_hover.c
index c7e76c3..61d4f52 100644
--- a/src/bin/test_hover.c
+++ b/src/bin/test_hover.c
@@ -1,6 +1,14 @@
1#include "elementary_config.h" 1#include "elementary_config.h"
2#include <Elementary.h> 2#include <Elementary.h>
3#ifndef ELM_LIB_QUICKLAUNCH 3#ifndef ELM_LIB_QUICKLAUNCH
4
5static void
6_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
7 void *event_info EINA_UNUSED)
8{
9 printf("hover dismissed callback is called!\n");
10}
11
4static void 12static void
5my_hover_bt(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 13my_hover_bt(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
6{ 14{
@@ -34,6 +42,7 @@ test_hover(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
34 evas_object_show(bx); 42 evas_object_show(bx);
35 43
36 hv = elm_hover_add(win); 44 hv = elm_hover_add(win);
45 evas_object_smart_callback_add(hv, "dismissed", _dismissed_cb, NULL);
37 46
38 bt = elm_button_add(win); 47 bt = elm_button_add(win);
39 elm_object_text_set(bt, "Button"); 48 elm_object_text_set(bt, "Button");