enlightenment/conf: fix missing icons in settings panel

Shows the 'unknown' icon for settings panel items which have no icon defined.
@fix
This commit is contained in:
Brian 'morlenxus' Miculcy 2014-10-20 16:55:29 +02:00
parent 86e769f83f
commit 503bd482bd
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}