Fix ef_read_dir() (ecore_file_ls() returns filenames without path).
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Aug 2008 21:03:13 +0000 (21:03 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Aug 2008 21:03:13 +0000 (21:03 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@35565 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/ef_icon_theme.c

index e1fd0bb..2ed512d 100644 (file)
@@ -460,7 +460,7 @@ ef_cb_efreet_icon_match(void)
 
         if (!path)
         {
-#if 0
+#if 1
             if (ecore_hash_get(icon_hash, icons[i]))
             {
                 printf("NOT FOUND %s\n", icons[i]);
@@ -469,6 +469,10 @@ ef_cb_efreet_icon_match(void)
 #endif
             continue;
         }
+        else if (!ecore_hash_get(icon_hash, icons[i]))
+        {
+            printf("Found icon not in hash: %s\n", icons[i]);
+        }
 
         s = strrchr(path, '.');
         if (s) *s = '\0';
@@ -620,9 +624,7 @@ ef_read_dir(const char *dir, Ecore_Hash *icons)
         {
             *p = '\0';
 
-            p = strrchr(file, '/');
-            if (p) p++;
-            if (p) ecore_hash_set(icons, strdup(p), strdup(p));
+            ecore_hash_set(icons, strdup(file), strdup(file));
         }
 
         FREE(file);