morlenxus pushed a commit to branch master.

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

commit 503bd482bd8f863cec38b668eff1446c97464a11
Author: Brian 'morlenxus' Miculcy <morlen...@gmx.net>
Date:   Mon Oct 20 16:55:29 2014 +0200

    enlightenment/conf: fix missing icons in settings panel
    
    Shows the 'unknown' icon for settings panel items which have no icon 
defined.
    @fix
---
 src/modules/conf/e_conf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/conf/e_conf.c b/src/modules/conf/e_conf.c
index 317a8c1..4ac2398 100644
--- a/src/modules/conf/e_conf.c
+++ b/src/modules/conf/e_conf.c
@@ -356,6 +356,8 @@ _e_configure_item_add(E_Configure_Category *cat, const char 
*label, const char *
    ci->label = eina_stringshare_add(label);
    if (icon_file) ci->icon_file = eina_stringshare_add(icon_file);
    if (icon) ci->icon = eina_stringshare_add(icon);
+   if ((!ci->icon_file) && (!ci->icon))
+     ci->icon = eina_stringshare_add("unknown");
    cat->items = eina_list_append(cat->items, ci);
 }
 

-- 


Reply via email to