From: Enlightenment S. <no-...@en...> - 2010-02-11 16:13:48
|
Log: fix returned values Author: caro Date: 2010-02-11 08:13:41 -0800 (Thu, 11 Feb 2010) New Revision: 46081 Modified: trunk/TMP/st/elementary/src/lib/elm_icon.c trunk/TMP/st/elementary/src/lib/elm_separator.c trunk/TMP/st/elementary/src/lib/elm_toolbar.c trunk/TMP/st/elementary/src/lib/elm_win.c Modified: trunk/TMP/st/elementary/src/lib/elm_icon.c =================================================================== --- trunk/TMP/st/elementary/src/lib/elm_icon.c 2010-02-11 15:32:29 UTC (rev 46080) +++ trunk/TMP/st/elementary/src/lib/elm_icon.c 2010-02-11 16:13:41 UTC (rev 46081) @@ -179,7 +179,7 @@ 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"); Modified: trunk/TMP/st/elementary/src/lib/elm_separator.c =================================================================== --- trunk/TMP/st/elementary/src/lib/elm_separator.c 2010-02-11 15:32:29 UTC (rev 46080) +++ trunk/TMP/st/elementary/src/lib/elm_separator.c 2010-02-11 16:13:41 UTC (rev 46081) @@ -84,6 +84,6 @@ 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; } Modified: trunk/TMP/st/elementary/src/lib/elm_toolbar.c =================================================================== --- trunk/TMP/st/elementary/src/lib/elm_toolbar.c 2010-02-11 15:32:29 UTC (rev 46080) +++ trunk/TMP/st/elementary/src/lib/elm_toolbar.c 2010-02-11 16:13:41 UTC (rev 46081) @@ -598,9 +598,9 @@ 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; } Modified: trunk/TMP/st/elementary/src/lib/elm_win.c =================================================================== --- trunk/TMP/st/elementary/src/lib/elm_win.c 2010-02-11 15:32:29 UTC (rev 46080) +++ trunk/TMP/st/elementary/src/lib/elm_win.c 2010-02-11 16:13:41 UTC (rev 46081) @@ -1164,7 +1164,7 @@ 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); |