summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-05-07 17:01:09 +0300
committerAvi Levin <avi.levin@samsung.com>2015-06-29 17:03:32 +0300
commit2f45862dca600fecfd532a37f7e03573760264be (patch)
treeffc118e8e622cb6eb3e8469bc7f7fb7ef84f58d4
parentdb79ddba5ae41432a24c670f1dd410cecf831f9b (diff)
elm_hover: porting evas smart callbacks to eo
-rw-r--r--src/lib/elm_hover.c14
-rw-r--r--src/lib/elm_hover.eo2
2 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c
index d568e278c..c55905ef2 100644
--- a/src/lib/elm_hover.c
+++ b/src/lib/elm_hover.c
@@ -243,8 +243,8 @@ _elm_hover_smt_sub_re_eval(Evas_Object *obj)
243 sd->smt_sub->obj = sub; 243 sd->smt_sub->obj = sub;
244 244
245 if (sd->smt_sub != prev) 245 if (sd->smt_sub != prev)
246 evas_object_smart_callback_call 246 eo_do(obj, eo_event_callback_call
247 (obj, SIG_SMART_LOCATION_CHANGED, (void *)sd->smt_sub->swallow); 247 (ELM_HOVER_EVENT_SMART_CHANGED, (void *)sd->smt_sub->swallow));
248 248
249 if (elm_widget_mirrored_get(obj)) 249 if (elm_widget_mirrored_get(obj))
250 { 250 {
@@ -517,8 +517,9 @@ _hov_dismiss_cb(void *data,
517 const char *source EINA_UNUSED) 517 const char *source EINA_UNUSED)
518{ 518{
519 evas_object_hide(data); 519 evas_object_hide(data);
520 evas_object_smart_callback_call(data, SIG_CLICKED, NULL); 520 eo_do(data, eo_event_callback_call
521 evas_object_smart_callback_call(data, SIG_DISMISSED, NULL); 521 (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL));
522 eo_do(data, eo_event_callback_call(ELM_HOVER_EVENT_DISMISSED, NULL));
522} 523}
523 524
524EOLIAN static void 525EOLIAN static void
@@ -560,8 +561,9 @@ _elm_hover_evas_object_smart_del(Eo *obj, Elm_Hover_Data *sd)
560 561
561 if (evas_object_visible_get(obj)) 562 if (evas_object_visible_get(obj))
562 { 563 {
563 evas_object_smart_callback_call(obj, SIG_CLICKED, NULL); 564 eo_do(obj, eo_event_callback_call
564 evas_object_smart_callback_call(obj, SIG_DISMISSED, NULL); 565 (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL));
566 eo_do(obj, eo_event_callback_call(ELM_HOVER_EVENT_DISMISSED, NULL));
565 } 567 }
566 568
567 elm_hover_target_set(obj, NULL); 569 elm_hover_target_set(obj, NULL);
diff --git a/src/lib/elm_hover.eo b/src/lib/elm_hover.eo
index 0e8b210ab..3e2d0403b 100644
--- a/src/lib/elm_hover.eo
+++ b/src/lib/elm_hover.eo
@@ -88,6 +88,8 @@ class Elm.Hover (Elm.Layout, Evas.Clickable_Interface)
88 events { 88 events {
89 focused; 89 focused;
90 unfocused; 90 unfocused;
91 smart,changed;
92 dismissed;
91 } 93 }
92 94
93} 95}