From 231e69bd200d30eb7237775ffed5e0611644d20e Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 11 Feb 2010 16:13:41 +0000 Subject: [PATCH] fix returned values SVN revision: 46081 --- src/lib/elm_icon.c | 2 +- src/lib/elm_separator.c | 2 +- src/lib/elm_toolbar.c | 4 ++-- src/lib/elm_win.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c index 60a4f84..fab3d8d 100644 --- a/src/lib/elm_icon.c +++ b/src/lib/elm_icon.c @@ -179,7 +179,7 @@ elm_icon_standard_set(Evas_Object *obj, const char *name) Widget_Data *wd = elm_widget_data_get(obj); Eina_Bool ret; - if ((!wd) || (!name)) return; + if ((!wd) || (!name)) return EINA_FALSE; if (wd->stdicon) eina_stringshare_del(wd->stdicon); wd->stdicon = eina_stringshare_add(name); ret = _elm_theme_icon_set(wd->img, name, "default"); diff --git a/src/lib/elm_separator.c b/src/lib/elm_separator.c index e3b8a60..c4b6edf 100644 --- a/src/lib/elm_separator.c +++ b/src/lib/elm_separator.c @@ -84,6 +84,6 @@ EAPI Eina_Bool elm_separator_horizontal_get(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if (!wd) return EINA_FALSE; return wd->horizontal; } diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 7e21320..a1355dd 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -598,9 +598,9 @@ elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu) EAPI Evas_Object * elm_toolbar_item_menu_get(Elm_Toolbar_Item *item) { - if (!item) return; + if (!item) return NULL; Widget_Data *wd = elm_widget_data_get(item->obj); - if (!wd) return; + if (!wd) return NULL; elm_toolbar_item_menu_set(item, 1); return item->o_menu; } diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 04178ba..f90ab53 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -1164,7 +1164,7 @@ elm_win_inwin_add(Evas_Object *obj) Widget_Data *wd; Elm_Win *win; - if (strcmp(elm_widget_type_get(obj), "win")) return; + if (strcmp(elm_widget_type_get(obj), "win")) return NULL; win = elm_widget_data_get(obj); if (!win) return NULL; wd = ELM_NEW(Widget_Data); -- 2.7.4