From de260634f16b78728eb28cfa3038ef19360a9cf1 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sun, 21 Jun 2009 19:56:01 +0000 Subject: [PATCH] exebuf: show different .desktops even if they have the same executable SVN revision: 41144 --- src/modules/exebuf/e_exebuf.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/modules/exebuf/e_exebuf.c b/src/modules/exebuf/e_exebuf.c index 0108e2b..bed7980 100644 --- a/src/modules/exebuf/e_exebuf.c +++ b/src/modules/exebuf/e_exebuf.c @@ -969,7 +969,7 @@ static void _e_exebuf_matches_update(void) { char *path, *file, buf[4096]; - Efreet_Desktop *desktop; + Efreet_Desktop *desktop, *desktop2; Eina_Hash *added = NULL; Eina_List *list; Eina_List *l; @@ -1025,7 +1025,8 @@ _e_exebuf_matches_update(void) exe = ecore_file_app_exe_get(desktop->exec); if (exe) { - if (!eina_hash_find(added, exe)) + desktop2 = eina_hash_find(added, exe); + if (!desktop2 || (desktop2 != desktop)) { eap_matches = eina_list_append(eap_matches, desktop); if (!added) @@ -1043,7 +1044,8 @@ _e_exebuf_matches_update(void) exe = ecore_file_app_exe_get(desktop->exec); if (exe) { - if (!eina_hash_find(added, exe)) + desktop2 = eina_hash_find(added, exe); + if (!desktop2 || (desktop2 != desktop)) { eap_matches = eina_list_append(eap_matches, desktop); if (!added) @@ -1061,7 +1063,8 @@ _e_exebuf_matches_update(void) exe = ecore_file_app_exe_get(desktop->exec); if (exe) { - if (!eina_hash_find(added, exe)) + desktop2 = eina_hash_find(added, exe); + if (!desktop2 || (desktop2 != desktop)) { eap_matches = eina_list_append(eap_matches, desktop); if (!added) @@ -1079,7 +1082,8 @@ _e_exebuf_matches_update(void) exe = ecore_file_app_exe_get(desktop->exec); if (exe) { - if (!eina_hash_find(added, exe)) + desktop2 = eina_hash_find(added, exe); + if (!desktop2 || (desktop2 != desktop)) { eap_matches = eina_list_append(eap_matches, desktop); if (!added) -- 2.7.4