forked from enlightenment/efl
elm: fixed wrong internal variable name.
Unified the local variable name to ret if the ret is a return value of another content_unset calls. - Evas_Object *int_ret --> Evas_Object *ret - Evas_Object *int_content --> Evas_Object *ret - Evas_Object *content --> Evas_Object *ret
This commit is contained in:
parent
774e32be36
commit
44a67054de
|
@ -260,9 +260,9 @@ _elm_fileselector_entry_elm_container_content_unset(Eo *obj, Elm_Fileselector_En
|
|||
{
|
||||
if (part && strcmp(part, "button icon"))
|
||||
{
|
||||
Evas_Object *int_ret = NULL;
|
||||
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_unset(part));
|
||||
return int_ret;
|
||||
Evas_Object *ret = NULL;
|
||||
eo_do_super(obj, MY_CLASS, ret = elm_obj_container_content_unset(part));
|
||||
return ret;
|
||||
}
|
||||
|
||||
return elm_layout_content_unset(sd->button, NULL);
|
||||
|
|
|
@ -2783,9 +2783,9 @@ _elm_entry_elm_container_content_set(Eo *obj, Elm_Entry_Data *_pd EINA_UNUSED, c
|
|||
EOLIAN static Evas_Object*
|
||||
_elm_entry_elm_container_content_unset(Eo *obj, Elm_Entry_Data *_pd EINA_UNUSED, const char *part)
|
||||
{
|
||||
Evas_Object *int_content = NULL;
|
||||
eo_do_super(obj, MY_CLASS, int_content = elm_obj_container_content_unset(part));
|
||||
if (!int_content) return NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
eo_do_super(obj, MY_CLASS, ret = elm_obj_container_content_unset(part));
|
||||
if (!ret) return NULL;
|
||||
|
||||
/* too bad entry does not follow the pattern
|
||||
* "elm,state,{icon,end},hidden", we have to repeat ourselves */
|
||||
|
@ -2795,7 +2795,7 @@ _elm_entry_elm_container_content_unset(Eo *obj, Elm_Entry_Data *_pd EINA_UNUSED,
|
|||
if (!part || !strcmp(part, "end") || !strcmp(part, "elm.swallow.end"))
|
||||
elm_entry_end_visible_set(obj, EINA_FALSE);
|
||||
|
||||
return int_content;
|
||||
return ret;
|
||||
}
|
||||
|
||||
EOLIAN static Eina_Bool
|
||||
|
|
|
@ -474,17 +474,17 @@ _elm_hover_elm_container_content_get(Eo *obj, Elm_Hover_Data *sd, const char *sw
|
|||
EOLIAN static Evas_Object*
|
||||
_elm_hover_elm_container_content_unset(Eo *obj, Elm_Hover_Data *sd, const char *swallow)
|
||||
{
|
||||
Evas_Object *int_ret = NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
|
||||
if (!swallow) return NULL;
|
||||
|
||||
if (!strcmp(swallow, "smart"))
|
||||
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_unset
|
||||
eo_do_super(obj, MY_CLASS, ret = elm_obj_container_content_unset
|
||||
(sd->smt_sub->swallow));
|
||||
else
|
||||
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_container_content_unset
|
||||
eo_do_super(obj, MY_CLASS, ret = elm_obj_container_content_unset
|
||||
(swallow));
|
||||
return int_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -300,21 +300,21 @@ _elm_panel_elm_container_content_get(Eo *obj, Elm_Panel_Data *sd, const char *pa
|
|||
EOLIAN static Evas_Object*
|
||||
_elm_panel_elm_container_content_unset(Eo *obj, Elm_Panel_Data *sd, const char *part)
|
||||
{
|
||||
Evas_Object *content = NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
|
||||
if (part && strcmp(part, "default"))
|
||||
{
|
||||
eo_do_super(obj, MY_CLASS, content = elm_obj_container_content_unset(part));
|
||||
return content;
|
||||
eo_do_super(obj, MY_CLASS, ret = elm_obj_container_content_unset(part));
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!sd->content) return NULL;
|
||||
content = sd->content;
|
||||
ret = sd->content;
|
||||
|
||||
evas_object_box_remove_all(sd->bx, EINA_FALSE);
|
||||
sd->content = NULL;
|
||||
|
||||
return content;
|
||||
return ret;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
|
|
|
@ -1431,10 +1431,10 @@ _elm_widget_top_get(Eo *obj, Elm_Widget_Smart_Data *sd)
|
|||
{
|
||||
if (sd->parent_obj)
|
||||
{
|
||||
Evas_Object *int_ret = NULL;
|
||||
Evas_Object *ret = NULL;
|
||||
if (!eo_isa(sd->parent_obj, ELM_OBJ_WIDGET_CLASS)) return NULL;
|
||||
eo_do((Eo *) sd->parent_obj, int_ret = elm_obj_widget_top_get());
|
||||
return int_ret;
|
||||
eo_do((Eo *) sd->parent_obj, ret = elm_obj_widget_top_get());
|
||||
return ret;
|
||||
}
|
||||
return (Evas_Object *)obj;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue