summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-13 20:46:56 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-14 11:04:16 +0900
commitab735ada77d47bf5416c7b05492cece5efcd1ecf (patch)
tree99c6d668b0438c614e56721cfbd29a6899faf6f0
parentf1974b7b1c6a48cbdd3e485105bf1d6b96ed49a6 (diff)
genlist: Make logic more readable
-rw-r--r--src/lib/elementary/elm_genlist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index a4b6908e79..11124b3674 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,
8006 elm_genlist_item_selected_set(eo_it2, EINA_FALSE); 8006 elm_genlist_item_selected_set(eo_it2, EINA_FALSE);
8007 } 8007 }
8008 8008
8009 if (((sd->decorate_it_type) 8009 if (!eina_streq(sd->decorate_it_type, decorate_it_type) ||
8010 && (strcmp(decorate_it_type, sd->decorate_it_type))) || 8010 decorate_it_set || (it == sd->mode_item))
8011 (decorate_it_set) || ((it == sd->mode_item) && (!decorate_it_set)))
8012 _decorate_item_unset(sd); 8011 _decorate_item_unset(sd);
8013 8012
8014 eina_stringshare_replace(&sd->decorate_it_type, decorate_it_type); 8013 eina_stringshare_replace(&sd->decorate_it_type, decorate_it_type);