Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Anchorblock_Item_Provider *ip = calloc(1, sizeof(Elm_Anchorblock_Item_Provider));
if (!ip) return;
ip->func = func;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Anchorblock_Item_Provider *ip = calloc(1, sizeof(Elm_Anchorblock_Item_Provider));
if (!ip) return;
ip->func = func;
Eina_List *l;
Elm_Anchorblock_Item_Provider *ip;
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->item_providers, l, ip)
{
if ((ip->func == func) && (ip->data == data))
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Anchorview_Item_Provider *ip = calloc(1, sizeof(Elm_Anchorview_Item_Provider));
if (!ip) return;
ip->func = func;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Anchorview_Item_Provider *ip = calloc(1, sizeof(Elm_Anchorview_Item_Provider));
if (!ip) return;
ip->func = func;
Eina_List *l;
Elm_Anchorview_Item_Provider *ip;
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->item_providers, l, ip)
{
if ((ip->func == func) && (ip->data == data))
Evas_Object *obj, *ic, *bt, *li, *en;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
// Elementary Widget
wd = ELM_NEW(Widget_Data);
wd->expand = !!_elm_config->fileselector_expand_enable;
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
wd->window_title = eina_stringshare_add(DEFAULT_WINDOW_TITLE);
wd->fsd.path = eina_stringshare_add(getenv("HOME"));
Evas *e = evas_object_evas_get(parent);
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *edje;
- if ((!wd) || (!icon)) return;
+ if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(icon);
if (wd->icon == icon) return;
if (wd->icon) evas_object_del(wd->icon);
wd->icon = icon;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Evas_Object *edje;
- if ((!wd) || (!end)) return;
+ if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(end);
if (wd->end == end) return;
if (wd->end) evas_object_del(wd->end);
wd->end = end;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Entry_Item_Provider *ip = calloc(1, sizeof(Elm_Entry_Item_Provider));
if (!ip) return;
ip->func = func;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Entry_Item_Provider *ip = calloc(1, sizeof(Elm_Entry_Item_Provider));
if (!ip) return;
ip->func = func;
Eina_List *l;
Elm_Entry_Item_Provider *ip;
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->item_providers, l, ip)
{
if ((ip->func == func) && (ip->data == data))
wd = elm_widget_data_get(obj);
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
tf = ELM_NEW(Elm_Entry_Text_Filter);
if (!tf) return;
wd = elm_widget_data_get(obj);
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
tf = ELM_NEW(Elm_Entry_Text_Filter);
if (!tf) return;
ELM_CHECK_WIDTYPE(obj, widtype);
wd = elm_widget_data_get(obj);
- if (!func) return;
+
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->text_filters, l, tf)
{
Widget_Data *wd;
Evas *e;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
{
Elm_Box_Transition *box_data;
- if ((!start_layout) || (!end_layout))
- return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(start_layout, NULL);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(end_layout, NULL);
box_data = calloc(1, sizeof(Elm_Box_Transition));
if (!box_data)
EAPI void
elm_box_transition_free(void *data)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Transition_Animation_Data *tad;
Elm_Box_Transition *box_data = data;
if ((box_data->start.free_data) && (box_data->start.data))
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- if ((!wd) || (!corner)) return;
+ if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(corner);
eina_stringshare_replace(&wd->corner, corner);
_theme_hook(obj);
}
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
int i, t;
Evas *e;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(weekdays);
+
for (i = 0; i < 7; i++)
{
eina_stringshare_replace(&wd->weekdays[i], weekdays[i]);
EAPI void
elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max)
{
- if (min) *min = 0;
- if (max) *max = 0;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
+
+ EINA_SAFETY_ON_NULL_RETURN(selected_time);
wd->selected_time = *selected_time;
_populate(obj);
return;
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
- if (selected_time) *selected_time = wd->selected_time;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(selected_time, EINA_FALSE);
+ *selected_time = wd->selected_time;
return EINA_TRUE;
}
Evas_Object *obj;
Widget_Data *wd;
- if (!mark) return;
+ EINA_SAFETY_ON_NULL_RETURN(mark);
obj = mark->obj;
wd = elm_widget_data_get(obj);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Widget_Data *wd = NULL;
Evas *e;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *evas;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
evas = evas_object_evas_get(parent);
Widget_Data* wd;
char buf[1024];
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
wd->evas = evas_object_evas_get(parent);
obj = elm_widget_add(wd->evas);
Widget_Data *wd;
wd = elm_widget_data_get(obj);
- if ((!wd) || (!parent))
+ if (!wd)
return;
+ EINA_SAFETY_ON_NULL_RETURN(parent);
+
elm_hover_parent_set(wd->hover, parent);
if (wd->hover_parent)
Evas_Object *obj;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
wd->self = obj = elm_widget_add(evas_object_evas_get(parent));
ELM_SET_WIDTYPE(widtype, "diskselector");
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Entry_Item_Provider *ip = calloc(1, sizeof(Elm_Entry_Item_Provider));
if (!ip) return;
ip->func = func;
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Entry_Item_Provider *ip = calloc(1, sizeof(Elm_Entry_Item_Provider));
if (!ip) return;
ip->func = func;
Eina_List *l;
Elm_Entry_Item_Provider *ip;
if (!wd) return;
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->item_providers, l, ip)
{
if ((ip->func == func) && (ip->data == data))
wd = elm_widget_data_get(obj);
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
tf = ELM_NEW(Elm_Entry_Text_Filter);
if (!tf) return;
wd = elm_widget_data_get(obj);
- if (!func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
tf = ELM_NEW(Elm_Entry_Text_Filter);
if (!tf) return;
ELM_CHECK_WIDTYPE(obj, widtype);
wd = elm_widget_data_get(obj);
- if (!func) return;
+
+ EINA_SAFETY_ON_NULL_RETURN(func);
EINA_LIST_FOREACH(wd->text_filters, l, tf)
{
const char *(*text_get)(const Evas_Object *);
const char *widget_type;
- if (!lim) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+ EINA_SAFETY_ON_NULL_RETURN(entry);
+ EINA_SAFETY_ON_NULL_RETURN(text);
/* hack. I don't want to copy the entire function to work with
* scrolled_entry */
Eina_Bool goes_in;
int read_idx, last_read_idx = 0, read_char;
- if ((!as) || ((!as->accepted) && (!as->rejected)))
+ EINA_SAFETY_ON_NULL_RETURN(data);
+ EINA_SAFETY_ON_NULL_RETURN(text);
+
+ if ((!as->accepted) && (!as->rejected))
return;
if (as->accepted)
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
static Evas_Smart *smart = NULL;
Eina_Bool bounce = _elm_config->thumbscroll_bounce_enable;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas_Coord minw, minh;
static Evas_Smart *smart = NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
if (!smart)
{
static Evas_Smart_Class sc;
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
if (!it->block) return;
- if (!itc) return;
+ EINA_SAFETY_ON_NULL_RETURN(itc);
if (it->delete_me) return;
it->itc = itc;
elm_genlist_item_update(it);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
ELM_HOVER_PARTS_FOREACH
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Eina_Bool ret;
const char *p;
- if ((!wd) || (!file)) return EINA_FALSE;
+ if (!wd) return EINA_FALSE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
if (wd->stdicon) eina_stringshare_del(wd->stdicon);
wd->stdicon = NULL;
if (((p = strrchr(file, '.'))) && (!strcasecmp(p, ".edj")))
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Eina_Bool ret;
const char *p;
- if ((!wd) || (!file)) return EINA_FALSE;
+ if (!wd) return EINA_FALSE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
if (((p = strrchr(file, '.'))) && (!strcasecmp(p, ".edj")))
ret = _els_smart_icon_file_edje_set(wd->img, file, group);
else
Widget_Data *wd;
Evas_Coord minw, minh;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
wd->bgcolor = EINA_FALSE;
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
wd->obj = obj = elm_widget_add(e);
Widget_Data *wd;
Evas_Coord minw, minh;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
wd->self = obj = elm_widget_add(e);
Widget_Data *wd;
Elm_List_Item *it;
- if ((!before) || (!before->node)) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(before, NULL);
+ if (!before->node) return NULL;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(before, NULL);
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd;
Elm_List_Item *it;
- if ((!after) || (!after->node)) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(after, NULL);
+ if (!after->node) return NULL;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(after, NULL);
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
elm_object_scale_set(Evas_Object *obj,
double scale)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scale_set(obj, scale);
}
EAPI double
elm_object_scale_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, 0.0);
return elm_widget_scale_get(obj);
}
elm_object_style_set(Evas_Object *obj,
const char *style)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_style_set(obj, style);
}
EAPI const char *
elm_object_style_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_style_get(obj);
}
elm_object_disabled_set(Evas_Object *obj,
Eina_Bool disabled)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_disabled_set(obj, disabled);
}
EAPI Eina_Bool
elm_object_disabled_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return elm_widget_disabled_get(obj);
}
EAPI void
elm_profile_set(const char *profile)
{
- if (!profile)
- return;
+ EINA_SAFETY_ON_NULL_RETURN(profile);
_elm_config_profile_set(profile);
}
EAPI void
elm_engine_set(const char *engine)
{
- if (!engine)
- return;
+ EINA_SAFETY_ON_NULL_RETURN(engine);
_elm_config_engine_set(engine);
}
EAPI Elm_Font_Properties *
elm_font_properties_get(const char *font)
{
- if (!font) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(font, NULL);
return _elm_font_properties_get(NULL, font);
}
{
const char *str;
+ EINA_SAFETY_ON_NULL_RETURN(efp);
EINA_LIST_FREE(efp->styles, str)
if (str) eina_stringshare_del(str);
if (efp->name) eina_stringshare_del(efp->name);
{
char buf[256];
- if (!name) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
if (!style || style[0] == 0) return eina_stringshare_add(name);
snprintf(buf, 256, "%s" ELM_FONT_TOKEN_STYLE "%s", name, style);
return eina_stringshare_add(buf);
EAPI Eina_Bool
elm_object_focus_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return elm_widget_focus_get(obj);
}
EAPI void
elm_object_focus(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
if (elm_widget_focus_get(obj))
return;
EAPI void
elm_object_unfocus(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
if (!elm_widget_can_focus_get(obj)) return;
elm_widget_focused_object_clear(obj);
}
elm_object_focus_allow_set(Evas_Object *obj,
Eina_Bool enable)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_can_focus_set(obj, enable);
}
EAPI Eina_Bool
elm_object_focus_allow_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return (elm_widget_can_focus_get(obj)) || (elm_widget_child_can_focus_get(obj));
}
elm_object_focus_custom_chain_set(Evas_Object *obj,
Eina_List *objs)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_focus_custom_chain_set(obj, objs);
}
EAPI void
elm_object_focus_custom_chain_unset(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_focus_custom_chain_unset(obj);
}
EAPI const Eina_List *
elm_object_focus_custom_chain_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_focus_custom_chain_get(obj);
}
Evas_Object *child,
Evas_Object *relative_child)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ EINA_SAFETY_ON_NULL_RETURN(child);
elm_widget_focus_custom_chain_append(obj, child, relative_child);
}
Evas_Object *child,
Evas_Object *relative_child)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ EINA_SAFETY_ON_NULL_RETURN(child);
elm_widget_focus_custom_chain_prepend(obj, child, relative_child);
}
elm_object_focus_cycle(Evas_Object *obj,
Elm_Focus_Direction dir)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_focus_cycle(obj, dir);
}
int x,
int y)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_focus_direction_go(obj, x, y);
}
EAPI void
elm_object_scroll_hold_push(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_hold_push(obj);
}
EAPI void
elm_object_scroll_hold_pop(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_hold_pop(obj);
}
EAPI void
elm_object_scroll_freeze_push(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_freeze_push(obj);
}
elm_object_scroll_lock_x_set(Evas_Object *obj,
Eina_Bool lock)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_drag_lock_x_set(obj, lock);
}
elm_object_scroll_lock_y_set(Evas_Object *obj,
Eina_Bool lock)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_drag_lock_y_set(obj, lock);
}
EAPI Eina_Bool
elm_object_scroll_lock_x_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return elm_widget_drag_lock_x_get(obj);
}
EAPI Eina_Bool
elm_object_scroll_lock_y_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return elm_widget_drag_lock_y_get(obj);
}
EAPI void
elm_object_scroll_freeze_pop(Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_scroll_freeze_pop(obj);
}
EAPI Eina_Bool
elm_object_widget_check(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
return elm_widget_is(obj);
}
EAPI Evas_Object *
elm_object_parent_widget_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_parent_widget_get(obj);
}
EAPI Evas_Object *
elm_object_top_widget_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_top_get(obj);
}
EAPI const char *
elm_object_widget_type_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_type_get(obj);
}
const char *emission,
const char *source)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_signal_emit(obj, emission, source);
}
EAPI void
elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ EINA_SAFETY_ON_NULL_RETURN(func);
elm_widget_signal_callback_add(obj, emission, source, func, data);
}
EAPI void *
elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source))
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(func, NULL);
return elm_widget_signal_callback_del(obj, emission, source, func);
}
EAPI void
elm_object_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ EINA_SAFETY_ON_NULL_RETURN(func);
elm_widget_event_callback_add(obj, func, data);
}
EAPI void *
elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(func, NULL);
return elm_widget_event_callback_del(obj, func, data);
}
static Evas_Smart *smart = NULL;
Eina_Bool bounce = _elm_config->thumbscroll_bounce_enable;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
if (!ecore_file_download_protocol_available("http://"))
{
ERR("Ecore must be built with the support of HTTP for the widget map !");
Evas_Object *o;
if (!wd) return NULL;
- if (!clas_group || !clas) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(clas_group, NULL);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(clas, NULL);
Elm_Map_Marker *marker = ELM_NEW(Elm_Map_Marker);
Eina_List *groups;
Widget_Data *wd;
- if (!marker) return;
+ EINA_SAFETY_ON_NULL_RETURN(marker);
wd = marker->wd;
if (!wd) return;
for (i = 0; i <= ZOOM_MAX; i++)
EAPI void
elm_map_marker_bring_in(Elm_Map_Marker *marker)
{
- if (!marker) return;
+ EINA_SAFETY_ON_NULL_RETURN(marker);
elm_map_geo_region_bring_in(marker->wd->obj, marker->longitude, marker->latitude);
}
EAPI void
elm_map_marker_show(Elm_Map_Marker *marker)
{
- if (!marker) return;
+ EINA_SAFETY_ON_NULL_RETURN(marker);
elm_map_geo_region_show(marker->wd->obj, marker->longitude, marker->latitude);
}
Evas_Coord rw, rh, xc, yc;
Widget_Data *wd;
- if (!markers) return;
+ EINA_SAFETY_ON_NULL_RETURN(markers);
EINA_LIST_FOREACH(markers, l, marker)
{
EAPI Evas_Object *
elm_map_marker_object_get(const Elm_Map_Marker *marker)
{
- if (!marker) return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(marker, NULL);
return marker->content;
}
EAPI void
elm_map_marker_update(Elm_Map_Marker *marker)
{
- if (!marker) return;
+ EINA_SAFETY_ON_NULL_RETURN(marker);
if (marker->content)
{
if (marker->clas->func.del)
EAPI void
elm_map_group_class_style_set(Elm_Map_Group_Class *clas, const char *style)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
eina_stringshare_replace(&clas->style, style);
}
EAPI void
elm_map_group_class_icon_cb_set(Elm_Map_Group_Class *clas, ElmMapGroupIconGetFunc icon_get)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->func.icon_get = icon_get;
}
EAPI void
elm_map_group_class_data_set(Elm_Map_Group_Class *clas, void *data)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->data = data;
}
EAPI void
elm_map_group_class_zoom_displayed_set(Elm_Map_Group_Class *clas, int zoom)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->zoom_displayed = zoom;
}
EAPI void
elm_map_group_class_zoom_grouped_set(Elm_Map_Group_Class *clas, int zoom)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->zoom_grouped = zoom;
}
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
if (clas->hide == hide) return;
clas->hide = hide;
if (wd->grids)
EAPI void
elm_map_marker_class_style_set(Elm_Map_Marker_Class *clas, const char *style)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
eina_stringshare_replace(&clas->style, style);
}
EAPI void
elm_map_marker_class_icon_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerIconGetFunc icon_get)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->func.icon_get = icon_get;
}
EAPI void
elm_map_marker_class_get_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerGetFunc get)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->func.get = get;
}
EAPI void
elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del)
{
- if (!clas) return;
+ EINA_SAFETY_ON_NULL_RETURN(clas);
clas->func.del = del;
}
EAPI void
elm_map_source_custom_api_set(Elm_Map_Sources source, const char *name, int zoom_min, int zoom_max, ElmMapSourceURLFunc url_cb)
{
- if ((!name) || (!url_cb)) return;
+ EINA_SAFETY_ON_NULL_RETURN(name);
+ EINA_SAFETY_ON_NULL_RETURN(url_cb);
map_sources_tab[source].name = name;
map_sources_tab[source].zoom_min = zoom_min;
map_sources_tab[source].zoom_max = zoom_max;
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
elm_widget_sub_object_add(subitem->base.widget, subitem->icon);
edje_object_part_swallow(subitem->base.view, "elm.swallow.content", subitem->icon);
- elm_menu_item_icon_set(subitem, icon);
+ if (icon) elm_menu_item_icon_set(subitem, icon);
if (parent)
{
{
char icon_tmp[512];
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
- if ((!icon) || (!*icon)) return;
+ EINA_SAFETY_ON_NULL_RETURN(icon);
+ if (!*icon) return;
if ((item->icon_str) && (!strcmp(item->icon_str, icon))) return;
if ((snprintf(icon_tmp, sizeof(icon_tmp), "menu/%s", icon) > 0) &&
(elm_icon_standard_set(item->icon, icon_tmp)))
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *evas;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
evas = evas_object_evas_get(parent);
obj = elm_widget_add(evas);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Widget_Data *wd;
Evas_Object *icon;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
static Evas_Smart *smart = NULL;
Eina_Bool bounce = _elm_config->thumbscroll_bounce_enable;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Widget_Data *wd;
Evas_Coord minw, minh;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- if ((!widget) || (!base)) return;
+ EINA_SAFETY_ON_NULL_RETURN(widget);
+ EINA_SAFETY_ON_NULL_RETURN(base);
if (eina_stringshare_replace(&wd->widget_name, widget) |
eina_stringshare_replace(&wd->widget_base, base))
_theme_hook(obj);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
EAPI void
elm_theme_free(Elm_Theme *th)
{
- if (!th) return;
+ EINA_SAFETY_ON_NULL_RETURN(th);
th->ref--;
if (th->ref < 1)
{
EAPI void
elm_object_theme_set(Evas_Object *obj, Elm_Theme *th)
{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_theme_set(obj, th);
}
EAPI Elm_Theme *
elm_object_theme_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return elm_widget_theme_get(obj);
}
Evas_Object *obj;
Evas_Coord minw, minh;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
evas = evas_object_evas_get(parent);
obj = elm_widget_add(evas);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
Evas *e;
Widget_Data *wd;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- if ((!wd) || (!parent)) return;
+ if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(parent);
wd->menu_parent = parent;
EINA_INLIST_FOREACH(wd->items, it)
{
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
+ EINA_SAFETY_ON_NULL_RETURN(cb);
+
Elm_Effect *effect;
Eina_List *elist;
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
+ EINA_SAFETY_ON_NULL_RETURN(cb);
+
Eina_List *elist, *elist_next;
Elm_Effect *effect;
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
- if (!obj) return;
+ EINA_SAFETY_ON_NULL_RETURN(obj);
Elm_Obj_Data *obj_data = evas_object_data_get(obj, _transit_key);
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
- if (!obj) return;
+ EINA_SAFETY_ON_NULL_RETURN(obj);
Elm_Obj_Data *obj_data = evas_object_data_get(obj, _transit_key);
{
ELM_TRANSIT_CHECK_OR_RETURN(transit);
- if (!transit) return;
transit->del_data.func = cb;
transit->del_data.arg = data;
}
EAPI void
elm_transit_effect_resizing_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Evas_Coord w, h;
Evas_Object *obj;
Eina_List *elist;
EAPI void
elm_transit_effect_translation_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Elm_Fx_Translation *translation = data;
Eina_List *elist, *elist_next;
Elm_Fx_Translation_Node *translation_node;
EAPI void
elm_transit_effect_translation_op(void *data, Elm_Transit *transit, double progress __UNUSED__)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Evas_Coord x, y;
Elm_Fx_Translation *translation = data;
Elm_Fx_Translation_Node *translation_node;
EAPI void
elm_transit_effect_zoom_op(void *data, Elm_Transit *transit , double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Evas_Object *obj;
Eina_List *elist;
EAPI void
elm_transit_effect_flip_context_free(void *data, Elm_Transit *transit)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Evas_Object *front, *back;
int i;
EAPI void
elm_transit_effect_flip_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Evas_Object *obj, *front, *back;
int count;
int i;
EAPI void
elm_transit_effect_resizable_flip_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Elm_Fx_ResizableFlip *resizable_flip = data;
Eina_List *elist, *elist_next;
Elm_Fx_ResizableFlip_Node *resizable_flip_node;
EAPI void
elm_transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
Evas_Map *map;
Evas_Object *obj;
EAPI void
elm_transit_effect_wipe_context_free(void *data, Elm_Transit *transit)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Eina_List *elist;
Evas_Object *obj;
Elm_Fx_Wipe *wipe = data;
EAPI void
elm_transit_effect_wipe_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Elm_Fx_Wipe *wipe = data;
Evas_Map *map;
EAPI void
elm_transit_effect_color_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Elm_Fx_Color *color = data;
Evas_Object *obj;
Eina_List *elist;
EAPI void
elm_transit_effect_fade_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Elm_Fx_Fade *fade = data;
Elm_Fx_Fade_Node *fade_node;
Eina_List *elist, *elist_next;
EAPI void
elm_transit_effect_fade_op(void *data, Elm_Transit *transit __UNUSED__, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
Elm_Fx_Fade *fade = data;
Eina_List *elist;
EAPI void
elm_transit_effect_blend_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Elm_Fx_Blend *blend = data;
Elm_Fx_Blend_Node *blend_node;
Eina_List *elist, *elist_next;
EAPI void
elm_transit_effect_blend_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Elm_Fx_Blend *blend = data;
Elm_Fx_Blend_Node *blend_node;
Eina_List *elist;
EAPI void
elm_transit_effect_rotation_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Elm_Fx_Rotation *rotation = data;
Evas_Map *map;
EAPI void
elm_transit_effect_image_animation_context_free(void *data, Elm_Transit *transit __UNUSED__)
{
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
Elm_Fx_Image_Animation *image_animation = data;
const char *image;
EAPI void
elm_transit_effect_image_animation_op(void *data, Elm_Transit *transit, double progress)
{
- if (!data) return;
+ EINA_SAFETY_ON_NULL_RETURN(data);
+
+ EINA_SAFETY_ON_NULL_RETURN(transit);
+
Eina_List *elist;
Evas_Object *obj;
const char *type;
elm_widget_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data)
{
API_ENTRY return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
Elm_Event_Cb_Data *ecb = ELM_NEW(Elm_Event_Cb_Data);
ecb->func = func;
ecb->data = data;
elm_widget_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data)
{
API_ENTRY return NULL;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(func, NULL);
Eina_List *l;
Elm_Event_Cb_Data *ecd;
EINA_LIST_FOREACH(sd->event_cb, l, ecd)
elm_widget_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child)
{
API_ENTRY return;
+ EINA_SAFETY_ON_NULL_RETURN(child);
if (!sd->focus_next_func)
return;
elm_widget_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child)
{
API_ENTRY return;
+ EINA_SAFETY_ON_NULL_RETURN(child);
if (!sd->focus_next_func)
return;
Edje_Signal_Data *esd;
API_ENTRY return;
if (!sd->callback_add_func) return;
+ EINA_SAFETY_ON_NULL_RETURN(func);
esd = ELM_NEW(Edje_Signal_Data);
if (!esd) return;