summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-04-03 16:51:11 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 03:49:50 +0100
commitae1a6ce748626b13f6315743383852a812d8a25d (patch)
treef73c4fc61266c58cd2df54b254708be87ab1b343
parentedd2c44989a0fcb323d13c05cae063cc000f6f42 (diff)
downloadelementary-ae1a6ce748626b13f6315743383852a812d8a25d.tar.gz
segment control: Adjusted to Eo2.
-rw-r--r--src/lib/elm_segment_control.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index 2269b8447..62ad8b22f 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -29,7 +29,7 @@ _elm_segment_control_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Segment_Contr
EINA_LIST_FOREACH(sd->items, l, it)
elm_widget_item_translate(it);
- eo_do_super(obj, MY_CLASS, elm_obj_widget_translate(NULL));
+ eo_do_super(obj, MY_CLASS, elm_obj_widget_translate());
return EINA_TRUE;
}
@@ -213,8 +213,8 @@ _elm_segment_control_elm_widget_theme_apply(Eo *obj, Elm_Segment_Control_Data *s
Eina_Bool rtl;
Elm_Segment_Item *it;
- Eina_Bool int_ret;
- eo_do_super(obj, MY_CLASS, elm_obj_widget_theme_apply(&int_ret));
+ Eina_Bool int_ret = EINA_FALSE;
+ eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_theme_apply());
if (!int_ret) return EINA_FALSE;
rtl = elm_widget_mirrored_get(obj);
@@ -237,8 +237,8 @@ _elm_segment_control_elm_widget_theme_apply(Eo *obj, Elm_Segment_Control_Data *s
EOLIAN static Eina_Bool
_elm_segment_control_elm_widget_disable(Eo *obj, Elm_Segment_Control_Data *sd)
{
- Eina_Bool int_ret;
- eo_do_super(obj, MY_CLASS, elm_obj_widget_disable(&int_ret));
+ Eina_Bool int_ret = EINA_FALSE;
+ eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_disable());
if (!int_ret) return EINA_FALSE;
_update_list(sd);
@@ -687,7 +687,7 @@ _elm_segment_control_eo_base_constructor(Eo *obj, Elm_Segment_Control_Data *sd)
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 Elm_Object_Item*