From 5de81e07036bc921e4a558515cd77cd1d9d4d91b Mon Sep 17 00:00:00 2001 From: seoz Date: Wed, 27 Apr 2011 16:06:11 +0000 Subject: [PATCH] Elementary: Use !! to Eina_Bool substitution in EAPIs. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58968 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_gengrid.c | 2 +- src/lib/elm_genlist.c | 2 +- src/lib/elm_menu.c | 2 +- src/lib/elm_toolbar.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 942076a..7198836 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -2313,7 +2313,7 @@ elm_gengrid_item_disabled_set(Elm_Gengrid_Item *item, ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item); if (item->disabled == disabled) return; if (item->delete_me) return; - item->disabled = disabled; + item->disabled = !!disabled; if (item->realized) { if (item->disabled) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 2a16000..aeab039 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3907,7 +3907,7 @@ elm_genlist_item_disabled_set(Elm_Genlist_Item *it, ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); if (it->disabled == disabled) return; if (it->delete_me) return; - it->disabled = disabled; + it->disabled = !!disabled; if (it->realized) { if (it->disabled) diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c index 09a2dde..243a532 100644 --- a/src/lib/elm_menu.c +++ b/src/lib/elm_menu.c @@ -779,7 +779,7 @@ elm_menu_item_disabled_set(Elm_Menu_Item *item, Eina_Bool disabled) { ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item); if (disabled == item->disabled) return; - item->disabled = disabled; + item->disabled = !!disabled; if (disabled) { edje_object_signal_emit(item->base.view, "elm,state,disabled", "elm"); diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index b97d9ec..e59c135 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -213,7 +213,7 @@ _item_disable(Elm_Toolbar_Item *it, Eina_Bool disabled) if (!wd) return; if (it->disabled == disabled) return; - it->disabled = disabled; + it->disabled = !!disabled; if (it->disabled) { edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm"); -- 2.7.4