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)
downloadelementary-2f45862dca600fecfd532a37f7e03573760264be.tar.gz
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)
sd->smt_sub->obj = sub;
if (sd->smt_sub != prev)
- evas_object_smart_callback_call
- (obj, SIG_SMART_LOCATION_CHANGED, (void *)sd->smt_sub->swallow);
+ eo_do(obj, eo_event_callback_call
+ (ELM_HOVER_EVENT_SMART_CHANGED, (void *)sd->smt_sub->swallow));
if (elm_widget_mirrored_get(obj))
{
@@ -517,8 +517,9 @@ _hov_dismiss_cb(void *data,
const char *source EINA_UNUSED)
{
evas_object_hide(data);
- evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
- evas_object_smart_callback_call(data, SIG_DISMISSED, NULL);
+ eo_do(data, eo_event_callback_call
+ (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL));
+ eo_do(data, eo_event_callback_call(ELM_HOVER_EVENT_DISMISSED, NULL));
}
EOLIAN static void
@@ -560,8 +561,9 @@ _elm_hover_evas_object_smart_del(Eo *obj, Elm_Hover_Data *sd)
if (evas_object_visible_get(obj))
{
- evas_object_smart_callback_call(obj, SIG_CLICKED, NULL);
- evas_object_smart_callback_call(obj, SIG_DISMISSED, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL));
+ eo_do(obj, eo_event_callback_call(ELM_HOVER_EVENT_DISMISSED, NULL));
}
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)
events {
focused;
unfocused;
+ smart,changed;
+ dismissed;
}
}