From cb4af1da03bd2d3dc82d6736c65b54f2ebc61a67 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Thu, 4 Feb 2010 20:02:56 +0000 Subject: [PATCH] Don't add already existing paths to theme SVN revision: 45883 --- legacy/efreet/src/lib/efreet_icon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/efreet/src/lib/efreet_icon.c b/legacy/efreet/src/lib/efreet_icon.c index 3e7757ddc6..828b693ca7 100644 --- a/legacy/efreet/src/lib/efreet_icon.c +++ b/legacy/efreet/src/lib/efreet_icon.c @@ -1153,7 +1153,8 @@ efreet_icon_theme_path_add(Efreet_Icon_Theme *theme, const char *path) { if (!theme || !path) return; - theme->paths = eina_list_append(theme->paths, strdup(path)); + if (!eina_list_search_unsorted(theme->paths, EINA_COMPARE_CB(strcmp), path)) + theme->paths = eina_list_append(theme->paths, strdup(path)); } /**