jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ab735ada77d47bf5416c7b05492cece5efcd1ecf

commit ab735ada77d47bf5416c7b05492cece5efcd1ecf
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Mar 13 20:46:56 2017 +0900

    genlist: Make logic more readable
---
 src/lib/elementary/elm_genlist.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index a4b6908..11124b3 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -8006,9 +8006,8 @@ _elm_genlist_item_decorate_mode_set(Eo *eo_it 
EINA_UNUSED, Elm_Gen_Item *it,
           elm_genlist_item_selected_set(eo_it2, EINA_FALSE);
      }
 
-   if (((sd->decorate_it_type)
-        && (strcmp(decorate_it_type, sd->decorate_it_type))) ||
-       (decorate_it_set) || ((it == sd->mode_item) && (!decorate_it_set)))
+   if (!eina_streq(sd->decorate_it_type, decorate_it_type) ||
+       decorate_it_set || (it == sd->mode_item))
      _decorate_item_unset(sd);
 
    eina_stringshare_replace(&sd->decorate_it_type, decorate_it_type);

-- 


Reply via email to