bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/misc/entrance.git/commit/?id=03816ba814e66e3d8d7ae6177107917567430360

commit 03816ba814e66e3d8d7ae6177107917567430360
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Apr 9 10:34:38 2014 +0200

    entrance: better check for icon part
---
 src/bin/entrance_conf_user.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/bin/entrance_conf_user.c b/src/bin/entrance_conf_user.c
index 33ce924..eeefbe9 100644
--- a/src/bin/entrance_conf_user.c
+++ b/src/bin/entrance_conf_user.c
@@ -159,11 +159,14 @@ _entrance_conf_session_text_get(void *data EINA_UNUSED, 
Evas_Object *obj EINA_UN
    exs = data;
    if (!part)
      return strdup(exs->name);
-   else
-     if (exs->icon)
-       return strdup(exs->icon);
-     else
-       return NULL;
+   else if((part) && (!strcmp(part, "icon")))
+     {
+        if (exs->icon)
+          return strdup(exs->icon);
+        else
+          return NULL;
+     }
+   return NULL;
 }
 
 static Evas_Object *

-- 


Reply via email to