From e47ea493a22db162c86d1677d258fff0d0edc38c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 3 Apr 2014 16:55:07 +0100 Subject: [PATCH] spinner: Adjusted to Eo2. --- src/lib/elm_spinner.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c index a6e7976..efc6113 100644 --- a/src/lib/elm_spinner.c +++ b/src/lib/elm_spinner.c @@ -177,14 +177,13 @@ _drag_cb(void *data, { double pos = 0.0, delta; Evas_Object *obj = data; - Eina_Bool ret = EINA_FALSE; ELM_SPINNER_DATA_GET(obj, sd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); if (sd->entry_visible) return; eo_do((Eo *)wd->resize_obj, - edje_obj_part_drag_value_get("elm.dragable.slider", &pos, NULL, &ret)); + edje_obj_part_drag_value_get("elm.dragable.slider", &pos, NULL)); delta = pos * sd->step * _elm_config->scale; /* If we are on rtl mode, change the delta to be negative on such changes */ @@ -545,8 +544,8 @@ success: EOLIAN static Eina_Bool _elm_spinner_elm_widget_on_focus(Eo *obj, Elm_Spinner_Data *sd) { - Eina_Bool int_ret; - eo_do_super(obj, MY_CLASS, elm_obj_widget_on_focus(&int_ret)); + Eina_Bool int_ret = EINA_FALSE; + eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_on_focus()); if (!int_ret) return EINA_FALSE; if (!elm_widget_focus_get(obj)) @@ -855,7 +854,7 @@ _elm_spinner_eo_base_constructor(Eo *obj, Elm_Spinner_Data *_pd EINA_UNUSED) eo_do_super(obj, MY_CLASS, eo_constructor()); eo_do(obj, evas_obj_type_set(MY_CLASS_NAME_LEGACY), - evas_obj_smart_callbacks_descriptions_set(_smart_callbacks, NULL)); + evas_obj_smart_callbacks_descriptions_set(_smart_callbacks)); } EOLIAN static void -- 2.7.4