enlightenment: Argh... the patch file was accidentally emptied during commit.
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 30 Jun 2009 07:26:17 +0000 (07:26 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 30 Jun 2009 07:26:17 +0000 (07:26 +0000)
SVN-Revision: 16634

efl/enlightenment/patches/020-lookup-desktop-icon.patch

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..bdd2511016a95d0660246fc36c62d2962953a961 100644 (file)
@@ -0,0 +1,22 @@
+diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
+index 644ff04..4e1075a 100644
+--- a/src/bin/e_fm.c
++++ b/src/bin/e_fm.c
+@@ -4789,7 +4789,15 @@ _e_fm2_icon_desktop_load(E_Fm2_Icon *ic)
+    ic->info.label   = eina_stringshare_add(desktop->name);
+    ic->info.generic = eina_stringshare_add(desktop->generic_name);
+    ic->info.comment = eina_stringshare_add(desktop->comment);
+-   ic->info.icon    = eina_stringshare_add(desktop->icon);
++
++   if (!desktop->icon || desktop->icon[0] == '/')
++     ic->info.icon    = eina_stringshare_add(desktop->icon);
++   else {
++     const char *icon = efreet_icon_path_find(e_config->icon_theme,
++                            desktop->icon, 32);
++     ic->info.icon = eina_string_share_add(icon);
++     free(icon);
++   }
+    if (desktop->url)
+      ic->info.link = _e_fm2_icon_desktop_url_eval(desktop->url);
+    if (desktop->x)
+