Elementary: Use !! to Eina_Bool substitution in EAPIs.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Apr 2011 16:06:11 +0000 (16:06 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Apr 2011 16:06:11 +0000 (16:06 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58968 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gengrid.c
src/lib/elm_genlist.c
src/lib/elm_menu.c
src/lib/elm_toolbar.c

index 942076a..7198836 100644 (file)
@@ -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)
index 2a16000..aeab039 100644 (file)
@@ -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)
index 09a2dde..243a532 100644 (file)
@@ -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");
index b97d9ec..e59c135 100644 (file)
@@ -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");