Elementary: Use !! to Eina_Bool substitution in EAPIs.
SVN revision: 58968
This commit is contained in:
parent
052b0b6828
commit
22aeea6acf
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue