{
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
elm_object_scroll_freeze_push(wd->scr);
}
{
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
elm_object_scroll_freeze_pop(wd->scr);
}
{
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
elm_object_scroll_hold_push(wd->scr);
}
{
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
elm_object_scroll_hold_pop(wd->scr);
}
{
Widget_Data *wd = elm_widget_data_get(data);
- if (!wd)
- return;
+ if (!wd) return;
if (wd->visible)
{
{
Widget_Data *wd = elm_widget_data_get(data);
- if (!wd)
- return;
+ if (!wd) return;
if (wd->visible)
{
{
Widget_Data *wd = elm_widget_data_get(data);
- if (!wd)
- return;
+ if (!wd) return;
wd->hover_parent = NULL;
}
Evas_Coord x, y, w, h;
- if (!item)
- return;
+ if (!item) return;
evas_object_geometry_get(item->base.view, &x, &y, &w, &h);
edje_object_size_min_restricted_calc(item->base.view, &min_w, &min_h, min_w,
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
if (wd->visible)
_sizing_eval(obj);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
evas_object_geometry_get(wd->arrow, NULL, NULL, &arrow_size.w,
Evas_Coord_Point _box_size = { 0, 0 };
wd = elm_widget_data_get(obj);
- if ((!wd) || (!wd->parent))
- return;
+ if ((!wd) || (!wd->parent)) return;
//Box, Scroller
EINA_LIST_FOREACH(wd->items, elist, item)
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
evas_object_event_callback_del_full(wd->parent, EVAS_CALLBACK_RESIZE,
_parent_resize, obj);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
elm_ctxpopup_clear(obj);
evas_object_del(wd->arrow);
Elm_Ctxpopup_Item *item;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
//Items
EINA_LIST_FOREACH(wd->items, elist, item)
Widget_Data *wd;
wd = elm_widget_data_get(data);
- if (!wd)
- return;
+ if (!wd) return;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
evas_object_resize(wd->bg, w, h);
- if (!wd->visible)
- return;
+ if (!wd->visible) return;
_hide(data);
}
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
- if ((!wd->items) && (!wd->content))
- return;
+ if ((!wd->items) && (!wd->content)) return;
wd->visible = EINA_TRUE;
{
Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
evas_object_hide(wd->bg);
evas_object_hide(wd->arrow);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
-
- if (!wd->visible)
+ if ((!wd) || (!wd->visible))
return;
_hide(obj);
Evas_Coord w, h;
wd = elm_widget_data_get(data);
- if (!wd)
- return;
-
- if (!wd->visible)
- return;
- if (wd->finished)
- return;
+ if (!wd) return;
+ if (!wd->visible) return;
+ if (wd->finished) return;
evas_object_geometry_get(obj, 0, 0, &w, &h);
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
if (wd->visible)
evas_object_show(wd->arrow);
{
Elm_Ctxpopup_Item *item = data;
- if (!item)
- return;
- if (item->disabled)
- return;
+ if (!item) return;
+ if (item->disabled) return;
if (item->func)
item->func((void*) item->base.data, item->base.widget, data);
Widget_Data *wd;
wd = elm_widget_data_get(item->base.widget);
- if (!wd)
- return;
+ if (!wd) return;
item->base.view = edje_object_add(evas_object_evas_get(wd->base));
_elm_theme_object_set(item->base.widget, item->base.view, "ctxpopup", group_name,
static void
_list_del(Widget_Data *wd)
{
- if (!wd->scr)
- return;
+ if (!wd->scr) return;
edje_object_part_unswallow(wd->base, wd->scr);
evas_object_del(wd->scr);
{
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
//scroller
wd->scr = elm_scroller_add(obj);
Eina_List *elist;
Elm_Ctxpopup_Item *item;
- if (!wd->items)
- return;
+ if (!wd->items) return;
EINA_LIST_FOREACH(wd->items, elist, item)
{
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
- if (!e)
- return NULL;
+ if (!e) return NULL;
obj = elm_widget_add(e);
ELM_SET_WIDTYPE(widtype, "ctxpopup");
elm_widget_type_set(obj, "ctxpopup");
Widget_Data *wd;
wd = elm_widget_data_get(item->base.widget);
- if (!wd)
- return;
+ if (!wd) return;
_item_icon_set(item, icon);
Widget_Data *wd;
wd = elm_widget_data_get(item->base.widget);
- if (!wd)
- return;
+ if (!wd) return;
_item_label_set(item, label);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
_hover_parent_callbacks_del(obj);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return NULL;
+ if (!wd) return NULL;
return wd->hover_parent;
}
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
-
- if (!wd)
- return;
+ if (!wd) return;
_remove_items(wd);
_list_del(wd);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
wd->horizontal = !!horizontal;
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return EINA_FALSE;
+ if (!wd) return EINA_FALSE;
return wd->horizontal;
}
Elm_Ctxpopup_Item *item;
wd = elm_widget_data_get(obj);
- if (!wd)
- return NULL;
+ if (!wd) return NULL;
item = elm_widget_item_new(obj, Elm_Ctxpopup_Item);
- if (!item)
- return NULL;
+ if (!item) return NULL;
//The first item is appended.
if (wd->content)
Widget_Data *wd;
wd = elm_widget_data_get(item->base.widget);
- if (!wd)
- return;
+ if (!wd) return;
if (item->icon)
evas_object_del(item->icon);
Widget_Data *wd;
wd = elm_widget_data_get(item->base.widget);
- if (!wd)
- return;
+ if (!wd) return;
if (disabled == item->disabled)
return;
Evas_Object *content;
wd = elm_widget_data_get(obj);
- if (!wd)
- return NULL;
+ if (!wd) return NULL;
content = wd->content;
- if (!content)
- return NULL;
+ if (!content) return NULL;
edje_object_part_unswallow(wd->base, content);
elm_widget_sub_object_del(obj, content);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
wd->dir_priority[0] = first;
wd->dir_priority[1] = second;
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if (!wd)
- return;
+ if (!wd) return;
if (first)
*first = wd->dir_priority[0];