_elm_ctxpopup_item_elm_widget_item_disable(Eo *eo_ctxpopup_it,
Elm_Ctxpopup_Item_Data *ctxpopup_it)
{
-
+ Eina_Bool tmp;
elm_object_item_disabled_set
- (ctxpopup_it->list_item, eo_do(eo_ctxpopup_it, elm_wdg_item_disabled_get()));
+ (ctxpopup_it->list_item, eo_do_ret(eo_ctxpopup_it, tmp, elm_wdg_item_disabled_get()));
}
EOLIAN static void
Evas_Smart_Cb func,
const void *data)
{
- Eo *obj = eo_do(eo_item, eo_parent_get());
+ Eo *obj;
+ eo_do(eo_item, obj = eo_parent_get());
Elm_Ctxpopup_Data *sd = eo_data_scope_get(obj, ELM_CTXPOPUP_CLASS);
if (!sd->list)
{
_key_action_top_item_get(Evas_Object *obj, const char *params EINA_UNUSED)
{
Elm_Object_Item *eo_item = NULL;
- eo_item = eo_do(obj, elm_obj_naviframe_top_item_get());
+ eo_do(obj, eo_item = elm_obj_naviframe_top_item_get());
if (!eo_item) return EINA_FALSE;
//FIXME: Replace this below code to elm_naviframe_item_pop() at elm 2.0.
EOLIAN static void
_elm_popup_item_elm_widget_item_disable(Eo *eo_it, Elm_Popup_Item_Data *it)
{
+ Eina_Bool tmp;
ELM_POPUP_ITEM_CHECK_OR_RETURN(it);
- if (eo_do(eo_it, elm_wdg_item_disabled_get()))
+ if (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get()))
elm_layout_signal_emit(VIEW(it), "elm,state,item,disabled", "elm");
else
elm_layout_signal_emit(VIEW(it), "elm,state,item,enabled", "elm");
EOLIAN static Eina_Bool
_elm_popup_elm_container_content_set(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED, const char *part, Evas_Object *content)
{
+ Eina_Bool tmp;
unsigned int i;
if (!part || !strcmp(part, "default"))
_action_button_set(obj, content, i);
}
else
- return eo_do(_pd->main_layout, elm_obj_container_content_set(part, content));
+ return eo_do_ret(_pd->main_layout, tmp, elm_obj_container_content_set(part, content));
return EINA_TRUE;
}
content = _action_button_get(obj, i);
}
else
- content = eo_do(_pd->main_layout, elm_obj_container_content_get(part));
+ eo_do(_pd->main_layout, content = elm_obj_container_content_get(part));
if (!content)
goto err;
evas_object_event_callback_del
(sd->content, EVAS_CALLBACK_DEL, _on_content_del);
- content = eo_do(sd->content_area, elm_obj_container_content_unset(CONTENT_PART));
+ eo_do(sd->content_area, content = elm_obj_container_content_unset(CONTENT_PART));
sd->content = NULL;
elm_layout_sizing_eval(obj);
ELM_POPUP_ITEM_DATA_GET(eo_it, it);
if (sd->content || sd->text_content_obj)
{
- prev_content = eo_do(sd->content_area,
+ eo_do(sd->content_area, prev_content =
elm_obj_container_content_get(CONTENT_PART));
evas_object_del(prev_content);
}
iter_array = eldbus_message_iter_container_new(iter, 'a', "(ua(so))");
EINA_SAFETY_ON_NULL_GOTO(iter_array, fail);
- rels = eo_do(obj, elm_interface_atspi_accessible_relation_set_get());
+ eo_do(obj, rels = elm_interface_atspi_accessible_relation_set_get());
EINA_LIST_FREE(rels, rel)
{
EAPI Eina_Bool
elm_bg_file_set(Eo *obj, const char *file, const char *group)
{
- return eo_do((Eo *) obj, efl_file_set(file, group));
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_set(file, group));
}
EAPI void
EAPI Eina_Bool
elm_colorselector_palette_item_selected_get(const Elm_Object_Item *it)
{
- return eo_do( it, elm_obj_color_item_selected_get());
+ Eina_Bool ret;
+ return eo_do_ret(it, ret, elm_obj_color_item_selected_get());
}
EOLIAN static Eina_Bool
static Eina_Bool
_long_press_cb(void *data)
{
+ Eina_Bool tmp;
Elm_Gen_Item *it = data;
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);
it->long_timer = NULL;
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) || (it->dragging))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) || (it->dragging))
return ECORE_CALLBACK_CANCEL;
sd->longpressed = EINA_TRUE;
evas_object_smart_callback_call(WIDGET(it), SIG_LONGPRESSED, EO_OBJ(it));
Evas_Object *obj EINA_UNUSED,
void *event_info)
{
+ Eina_Bool tmp;
Evas_Event_Mouse_Up *ev = event_info;
Eina_Bool dragged = EINA_FALSE;
Elm_Gen_Item *it = data;
_elm_gengrid_item_unrealize(it, EINA_FALSE);
}
- if (eo_do(eo_it, elm_wdg_item_disabled_get()) || (dragged)) return;
+ if (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get()) || (dragged)) return;
if (sd->focused_item != eo_it)
elm_object_item_focus_set(eo_it, EINA_TRUE);
static void
_item_realize(Elm_Gen_Item *it)
{
+ Eina_Bool tmp;
char buf[1024];
char style[1024];
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);
if (it->selected)
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
- if (eo_do(eo_it, elm_wdg_item_disabled_get()))
+ if (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get()))
edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
if (it == (Elm_Gen_Item *)sd->focused_item &&
elm_widget_focus_highlight_enabled_get(WIDGET(it)))
static void
_elm_gengrid_item_focused(Elm_Object_Item *eo_it)
{
+ Eina_Bool tmp;
ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
Evas_Object *obj = WIDGET(it);
ELM_GENGRID_DATA_GET(obj, sd);
if (_is_no_select(it) ||
(eo_it == sd->focused_item) ||
- (eo_do(eo_it, elm_wdg_item_disabled_get())))
+ (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get())))
return;
switch (_elm_config->focus_autoscroll_mode)
EOLIAN static void
_elm_gengrid_item_elm_widget_item_disable(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
{
+ Eina_Bool tmp;
if (it->generation < GG_IT(it)->wsd->generation) return;
if (it->realized)
{
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
else
edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm");
_elm_gengrid_item_selected_set(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
Eina_Bool selected)
{
+ Eina_Bool tmp;
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);
- if ((it->generation < sd->generation) || eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if ((it->generation < sd->generation) || eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
return;
selected = !!selected;
if (it->selected == selected) return;
EAPI const char *
elm_gengrid_item_tooltip_style_get(const Elm_Object_Item *it)
{
- return eo_do(it, elm_wdg_item_tooltip_style_get());
+ const char *ret;
+ return eo_do_ret(it, ret, elm_wdg_item_tooltip_style_get());
}
EOLIAN static const char *
elm_gengrid_item_tooltip_window_mode_set(Elm_Object_Item *it,
Eina_Bool disable)
{
- return eo_do(it, elm_wdg_item_tooltip_window_mode_set(disable));
+ Eina_Bool ret;
+ return eo_do_ret(it, ret, elm_wdg_item_tooltip_window_mode_set(disable));
}
EOLIAN static Eina_Bool
{
it->tooltip.free_size = disable;
if (VIEW(it))
- return eo_do_super(eo_it, ELM_GENGRID_ITEM_CLASS,
- elm_wdg_item_tooltip_window_mode_set(disable));
+ {
+ Eina_Bool ret;
+ eo_do_super(eo_it, ELM_GENGRID_ITEM_CLASS,
+ ret = elm_wdg_item_tooltip_window_mode_set(disable));
+ return ret;
+ }
return EINA_TRUE;
}
EAPI Eina_Bool
elm_gengrid_item_tooltip_window_mode_get(const Elm_Object_Item *it)
{
- return eo_do(it, elm_wdg_item_tooltip_window_mode_get());
+ Eina_Bool ret;
+ return eo_do_ret(it, ret, elm_wdg_item_tooltip_window_mode_get());
}
EOLIAN static Eina_Bool
EAPI const char *
elm_gengrid_item_cursor_get(const Elm_Object_Item *it)
{
- return eo_do(it, elm_wdg_item_cursor_get());
+ const char *ret;
+ return eo_do_ret(it, ret, elm_wdg_item_cursor_get());
}
EAPI void
EAPI const char *
elm_gengrid_item_cursor_style_get(const Elm_Object_Item *it)
{
- return eo_do(it, elm_wdg_item_cursor_style_get());
+ const char *ret;
+ return eo_do_ret(it, ret, elm_wdg_item_cursor_style_get());
}
EAPI void
EAPI Eina_Bool
elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *it)
{
- return eo_do( it, elm_wdg_item_cursor_engine_only_get());
+ Eina_Bool ret;
+ return eo_do_ret(it, ret, elm_wdg_item_cursor_engine_only_get());
}
EAPI void
const char *src,
const char *parts)
{
+ Eina_Bool tmp;
Evas_Object *content;
if (!parts)
continue;
}
elm_widget_sub_object_add(WIDGET(it), content);
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
elm_widget_disabled_set(content, EINA_TRUE);
}
}
_elm_genlist_item_state_update(Elm_Gen_Item *it,
Item_Cache *itc)
{
+ Eina_Bool tmp;
if (itc)
{
if (it->selected != itc->selected)
(it->deco_all_view, SIGNAL_SELECTED, "elm");
}
}
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) != itc->disabled)
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) != itc->disabled)
{
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
edje_object_signal_emit(VIEW(it), SIGNAL_DISABLED,"elm");
if (it->deco_all_view)
edje_object_signal_emit
edje_object_signal_emit
(it->deco_all_view, SIGNAL_SELECTED, "elm");
}
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
{
edje_object_signal_emit(VIEW(it), SIGNAL_DISABLED, "elm");
if (it->deco_all_view)
itc->item_style = eina_stringshare_add(it->itc->item_style);
if (it->item->type & ELM_GENLIST_ITEM_TREE) itc->tree = 1;
itc->selected = it->selected;
- itc->disabled = eo_do(EO_OBJ(it), elm_wdg_item_disabled_get());
+ eo_do(EO_OBJ(it), itc->disabled = elm_wdg_item_disabled_get());
itc->expanded = it->item->expanded;
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
ELM_SAFE_FREE(it->item->swipe_timer, ecore_timer_del);
Evas_Object *obj = WIDGET(it);
ELM_GENLIST_DATA_GET(obj, sd);
const char *focus_raise;
+ Eina_Bool tmp;
if (_is_no_select(it) ||
(eo_it == sd->focused_item) ||
- (eo_do(eo_it, elm_wdg_item_disabled_get())))
+ (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get())))
return;
switch (_elm_config->focus_autoscroll_mode)
Elm_Object_Item *eo_next;
Elm_Object_Item *eo_first_item;
Elm_Object_Item *eo_last_item;
+ Eina_Bool tmp;
if (!sd->focused_item)
{
return EINA_FALSE;
while ((next) &&
- (!eo_do(EO_OBJ(next), elm_wdg_item_disabled_get())))
+ (!eo_do_ret(EO_OBJ(next), tmp, elm_wdg_item_disabled_get())))
next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next);
}
else
eo_next = elm_genlist_item_prev_get(sd->focused_item);
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
- while (eo_do(eo_next, elm_wdg_item_disabled_get()))
+ while (eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get()))
{
eo_next = elm_genlist_item_prev_get(eo_next);
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
eo_next = elm_genlist_item_next_get(sd->focused_item);
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
- while (eo_do(eo_next, elm_wdg_item_disabled_get()))
+ while (eo_do_ret(eo_next, tmp, elm_wdg_item_disabled_get()))
{
eo_next = elm_genlist_item_next_get(eo_next);
next = eo_data_scope_get(eo_next, ELM_GENLIST_ITEM_CLASS);
static void
_item_highlight(Elm_Gen_Item *it)
{
+ Eina_Bool tmp;
const char *selectraise;
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
if (_is_no_select(it) ||
(!sd->highlight) ||
- (it->highlighted) || eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) ||
+ (it->highlighted) || eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) ||
(it->item->deco_it_view))
return;
static Eina_Bool
_long_press_cb(void *data)
{
+ Eina_Bool tmp;
Elm_Gen_Item *it = data;
Elm_Object_Item *eo_it_tmp;
Eina_List *list;
it->long_timer = NULL;
if (_is_no_select(it) ||
- eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) || (it->dragging))
+ eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) || (it->dragging))
return ECORE_CALLBACK_CANCEL;
sd->longpressed = EINA_TRUE;
_swipe_do(Elm_Gen_Item *it)
{
int i, sum = 0;
+ Eina_Bool tmp;
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
if (_is_no_select(it) ||
- eo_do(EO_OBJ(it), elm_wdg_item_disabled_get())) return;
+ eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get())) return;
sd->swipe = EINA_FALSE;
for (i = 0; i < sd->movements; i++)
Evas_Object *obj,
void *event_info)
{
+ Eina_Bool tmp;
Evas_Event_Mouse_Down *ev = event_info;
Elm_Gen_Item *it = data;
Evas_Coord x, y;
sd->movements = 0;
if (_is_no_select(it) ||
- eo_do((Eo *)eo_it, elm_wdg_item_disabled_get()))
+ eo_do_ret((Eo *)eo_it, tmp, elm_wdg_item_disabled_get()))
return;
// and finally call the user callbacks.
Evas_Object *obj EINA_UNUSED,
void *event_info)
{
+ Eina_Bool tmp;
Evas_Event_Mouse_Up *ev = event_info;
Eina_Bool dragged = EINA_FALSE;
Elm_Gen_Item *it = data;
}
if (_is_no_select(it) ||
- (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) || (dragged)))
+ (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) || (dragged)))
return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
static Eina_Bool
_item_select(Elm_Gen_Item *it)
{
+ Eina_Bool tmp;
Evas_Object *obj = WIDGET(it);
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
Elm_Object_Item *eo_it = EO_OBJ(it);
- if (eo_do(eo_it, elm_wdg_item_disabled_get())) return EINA_FALSE;
+ if (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get())) return EINA_FALSE;
if (_is_no_select(it) || (it->decorate_it_set)) return EINA_FALSE;
if ((sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) &&
(it->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) && it->selected)
EOLIAN static void
_elm_genlist_item_elm_widget_item_disable(Eo *eo_it, Elm_Gen_Item *it)
{
+ Eina_Bool tmp;
Eina_List *l;
Evas_Object *obj;
if (it->realized)
{
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
{
edje_object_signal_emit(VIEW(it), SIGNAL_DISABLED, "elm");
if (it->deco_all_view)
(it->deco_all_view, SIGNAL_ENABLED, "elm");
}
EINA_LIST_FOREACH(it->contents, l, obj)
- elm_widget_disabled_set(obj, eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()));
+ elm_widget_disabled_set(obj, eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()));
}
}
_elm_genlist_item_selected_set(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
Eina_Bool selected)
{
+ Eina_Bool tmp;
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get())) return;
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get())) return;
selected = !!selected;
if (it->selected == selected) return;
EAPI const char *
elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it)
{
- return eo_do(it, elm_wdg_item_tooltip_style_get());
+ const char *ret;
+ return eo_do_ret(it, ret, elm_wdg_item_tooltip_style_get());
}
EAPI Eina_Bool
elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *item,
Eina_Bool disable)
{
- return eo_do(item, elm_wdg_item_tooltip_window_mode_set(disable));
+ Eina_Bool ret;
+ return eo_do_ret(item, ret, elm_wdg_item_tooltip_window_mode_set(disable));
}
EOLIAN static Eina_Bool
it->tooltip.free_size = disable;
if (VIEW(it))
- return eo_do_super(eo_it, ELM_GENLIST_ITEM_CLASS,
- elm_wdg_item_tooltip_window_mode_set(disable));
+ {
+ Eina_Bool ret;
+ eo_do_super(eo_it, ELM_GENLIST_ITEM_CLASS,
+ ret = elm_wdg_item_tooltip_window_mode_set(disable));
+ return ret;
+ }
return EINA_TRUE;
}
elm_genlist_item_tooltip_window_mode_get(const Elm_Object_Item *eo_it)
{
ELM_GENLIST_ITEM_DATA_GET(eo_it, it);
- return eo_do(VIEW(it), elm_wdg_item_tooltip_window_mode_get());
+ Eina_Bool ret;
+ return eo_do_ret(VIEW(it), ret, elm_wdg_item_tooltip_window_mode_get());
}
EAPI void
EAPI const char *
elm_genlist_item_cursor_get(const Elm_Object_Item *eo_it)
{
- return eo_do(eo_it, elm_wdg_item_cursor_get());
+ const char *ret;
+ return eo_do_ret(eo_it, ret, elm_wdg_item_cursor_get());
}
EAPI void
EAPI const char *
elm_genlist_item_cursor_style_get(const Elm_Object_Item *eo_it)
{
- return eo_do( eo_it, elm_wdg_item_cursor_style_get());
+ const char *ret;
+ return eo_do_ret(eo_it, ret, elm_wdg_item_cursor_style_get());
}
EAPI void
EAPI Eina_Bool
elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *eo_it)
{
- return eo_do( eo_it, elm_wdg_item_cursor_engine_only_get());
+ Eina_Bool ret;
+ return eo_do_ret(eo_it, ret, elm_wdg_item_cursor_engine_only_get());
}
EOLIAN static int
Elm_Genlist_Data *sd;
Eina_List *l;
Elm_Object_Item *eo_it2 = NULL;
+ Eina_Bool tmp;
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
sd = GL_IT(it)->wsd;
if (!decorate_it_type) return;
- if (eo_do(eo_it, elm_wdg_item_disabled_get())) return;
+ if (eo_do_ret(eo_it, tmp, elm_wdg_item_disabled_get())) return;
if (sd->decorate_all_mode) return;
if ((sd->mode_item == it) &&
EAPI Eina_Bool
elm_layout_file_set(Eo *obj, const char *file, const char *group)
{
- return eo_do((Eo *) obj, efl_file_set(file, group));
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_set(file, group));
}
#include "elm_layout.eo.c"
_elm_list_item_elm_widget_item_part_text_get(Eo *eo_it, Elm_List_Item_Data *it,
const char *part)
{
+ const char *ret;
if (part && strcmp(part, "default"))
- return eo_do(eo_it, elm_wdg_item_part_text_custom_get(part));
+ return eo_do_ret(eo_it, ret, elm_wdg_item_part_text_custom_get(part));
return it->label;
}
Eina_List *items = sd->items;
EINA_LIST_FOREACH(items, l, eo_current)
{
+ Eina_Bool tmp;
ELM_MENU_ITEM_DATA_GET(eo_current, current);
- if (!current->blocked) current->was_enabled = !eo_do(eo_current, elm_wdg_item_disabled_get());
+ if (!current->blocked) current->was_enabled = !eo_do_ret(eo_current, tmp, elm_wdg_item_disabled_get());
current->blocked = EINA_TRUE;
elm_object_item_disabled_set(eo_current, EINA_TRUE);
}
item->func,
WIDGET_ITEM_DATA_GET(EO_OBJ(item)));
- Eina_Bool disabled = eo_do(eo_item, elm_wdg_item_disabled_get());
+ Eina_Bool disabled;
+ eo_do(eo_item, disabled = elm_wdg_item_disabled_get());
eo_do(new_item, elm_wdg_item_disabled_set(disabled));
EINA_LIST_FOREACH(item->submenu.items, iter, subitem)
EAPI Eina_Bool
elm_photo_file_set(Eo *obj, const char *file)
{
- return eo_do((Eo *) obj, efl_file_set(file, NULL));
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_set(file, NULL));
}
#include "elm_photo.eo.c"
EAPI Eina_Bool
elm_prefs_file_set(Eo *obj, const char *file, const char *page)
{
- return eo_do((Eo *) obj, efl_file_set(file, page));
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_set(file, page));
}
EAPI Eina_Bool
else
{
Elm_Object_Item *menu_it;
+ Eina_Bool tmp;
menu_it = elm_menu_item_add
(menu, NULL, it->icon_str, it->label,
_elm_toolbar_item_menu_cb, it);
- Eina_Bool disabled = eo_do(EO_OBJ(it), elm_wdg_item_disabled_get());
+ Eina_Bool disabled = eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get());
eo_do(menu_it, elm_wdg_item_disabled_set(disabled));
if (it->o_menu)
elm_menu_clone(it->o_menu, menu, menu_it);
EOLIAN static void
_elm_toolbar_item_elm_widget_item_disable(Eo *eo_toolbar, Elm_Toolbar_Item_Data *toolbar_it)
{
+ Eina_Bool tmp;
const char* emission;
- if (eo_do(eo_toolbar, elm_wdg_item_disabled_get()))
+ if (eo_do_ret(eo_toolbar, tmp, elm_wdg_item_disabled_get()))
emission = "elm,state,disabled";
else
emission = "elm,state,enabled";
{
Evas_Object *obj;
Eina_Bool sel;
+ Eina_Bool tmp;
ELM_TOOLBAR_DATA_GET(WIDGET(it), sd);
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()) || (it->separator) || (it->object))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()) || (it->separator) || (it->object))
return;
sel = it->selected;
Evas_Coord mw = -1, mh = -1;
Evas_Object *view = VIEW(it);
const char *style;
+ Eina_Bool tmp;
ELM_TOOLBAR_DATA_GET(obj, sd);
if (it->icon)
elm_widget_signal_emit(it->icon, "elm,state,selected", "elm");
}
- if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
{
edje_object_signal_emit(view, "elm,state,disabled", "elm");
if (it->icon)
_access_state_cb(void *data, Evas_Object *obj EINA_UNUSED)
{
Elm_Toolbar_Item_Data *it = (Elm_Toolbar_Item_Data *)data;
+ Eina_Bool tmp;
if (it->separator)
return strdup(E_("Separator"));
- else if (eo_do(EO_OBJ(it), elm_wdg_item_disabled_get()))
+ else if (eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get()))
return strdup(E_("State: Disabled"));
else if (it->selected)
return strdup(E_("State: Selected"));
{
ELM_TOOLBAR_ITEM_DATA_GET(item, it);
ELM_TOOLBAR_DATA_GET(WIDGET(it), sd);
+ Eina_Bool tmp;
- if (eo_do(item, elm_wdg_item_disabled_get())) return;
+ if (eo_do_ret(item, tmp, elm_wdg_item_disabled_get())) return;
if (it->selected && (sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS))
{
}
if (item->icon)
{
- if (eo_do(EO_OBJ(item), elm_wdg_item_disabled_get()))
+ Eina_Bool tmp;
+ if (eo_do_ret(EO_OBJ(item), tmp, elm_wdg_item_disabled_get()))
elm_widget_signal_emit(item->icon, "elm,state,disabled", "elm");
else
elm_widget_signal_emit(item->icon, "elm,state,enabled", "elm");
EAPI Eina_Bool
elm_video_file_set(Eo *obj, const char *filename)
{
- return eo_do((Eo *) obj, efl_file_set(filename, NULL));
+ Eina_Bool ret;
+ return eo_do_ret((Eo *) obj, ret, efl_file_set(filename, NULL));
}
#define WIDGET_ITEM_DATA_GET(eo_obj) \
({ \
- eo_do(eo_obj, eo_key_data_get("__elm_widget_item_data")); \
+ void *_data; \
+ eo_do_ret(eo_obj, _data, eo_key_data_get("__elm_widget_item_data")); \
})
#define WIDGET_ITEM_DATA_SET(eo_obj, data) \