summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-05-15 18:38:50 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-05-15 18:38:50 +0000
commit8cde10890bbd21bab819dac69e95016b91709691 (patch)
treec14008f9f53d8687527c284c3604e23a6b2c91cf /legacy/efreet
parent3185c6d8a0d9a6b1d91847bd3d6ea20becad5a61 (diff)
efreet: Don't remove/add stuff already in list
eina_list_promote_list to prepend data already in list. SVN revision: 48898
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_icon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/legacy/efreet/src/lib/efreet_icon.c b/legacy/efreet/src/lib/efreet_icon.c
index e0b819d05a..d0387d7473 100644
--- a/legacy/efreet/src/lib/efreet_icon.c
+++ b/legacy/efreet/src/lib/efreet_icon.c
@@ -212,11 +212,11 @@ efreet_icon_extension_add(const char *ext)
212 212
213 if ((l = eina_list_data_find_list(efreet_icon_extensions, ext))) 213 if ((l = eina_list_data_find_list(efreet_icon_extensions, ext)))
214 { 214 {
215 eina_stringshare_del((const char *)l->data); 215 efreet_icon_extensions = eina_list_promote_list(efreet_icon_extensions, l);
216 efreet_icon_extensions = eina_list_remove_list(efreet_icon_extensions, l); 216 eina_stringshare_del(ext);
217 } 217 }
218 218 else
219 efreet_icon_extensions = eina_list_prepend(efreet_icon_extensions, ext); 219 efreet_icon_extensions = eina_list_prepend(efreet_icon_extensions, ext);
220} 220}
221 221
222/** 222/**