cedric pushed a commit to branch enlightenment-0.17.

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

commit e12cdeac14dad235d2e39fe3b2df7bfdc940383c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Nov 3 17:06:31 2014 -0500

    fix signal emission on selected ilist item icons
---
 src/bin/e_ilist.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c
index 3a4862f..377a26d 100644
--- a/src/bin/e_ilist.c
+++ b/src/bin/e_ilist.c
@@ -1247,9 +1247,11 @@ _item_select(E_Ilist_Item *si)
    edje_object_signal_emit(si->o_base, "e,state,selected", "e");
    if (si->o_icon)
      {
-        if (strcmp(evas_object_type_get(si->o_icon), "e_icon"))
+        const char *t = evas_object_type_get(si->o_icon);
+
+        if (!strcmp(t, "edje"))
           edje_object_signal_emit(si->o_icon, "e,state,selected", "e");
-        else
+        else if (!strcmp(t, "e_icon"))
           e_icon_selected_set(si->o_icon, EINA_TRUE);
      }
    sd->selected_items = eina_list_append(sd->selected_items, si);

-- 


Reply via email to