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)
downloadefl-ab735ada77d47bf5416c7b05492cece5efcd1ecf.tar.gz
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,
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);