diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-05 15:37:41 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-05 15:37:41 +0900 |
commit | 4c6fa3073f34e9bf32c83751d864e1f8f305c074 (patch) | |
tree | 403bea3927552b0831b82bfc9abb013eb9239bd7 | |
parent | 042f1716a76d3c713495bed5cd60f384d1f7e560 (diff) | |
download | elementary-4c6fa3073f34e9bf32c83751d864e1f8f305c074.tar.gz |
genlist: unselect item if the select mode is display only or none.
@fix
-rw-r--r-- | src/lib/elm_genlist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index a90382ae1..9ee568bab 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -7637,6 +7637,10 @@ _elm_genlist_item_select_mode_set(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it, it->select_mode = mode; + if ((it->select_mode == ELM_OBJECT_SELECT_MODE_NONE) || + (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)) + _item_unselect(it); + if (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) { it->item->mincalcd = EINA_FALSE; |