1 diff -urN aa/desktop-file-utils-0.8/src/menu-entries.c desktop-file-utils-0.8/src/menu-entries.c
2 --- aa/desktop-file-utils-0.8/src/menu-entries.c 2004-09-07 18:17:31.251622656 +0200
3 +++ desktop-file-utils-0.8/src/menu-entries.c 2004-09-07 18:29:07.293808160 +0200
4 @@ -2027,12 +2027,14 @@
8 -entry_new_directory_from_file (const char *filename,
9 +entry_new_directory_from_file (EntryCache *cache,
10 + const char *filename,
20 @@ -2058,6 +2060,35 @@
22 g_free (nodisplay_str);
25 + if (cache->only_show_in_name && nodisplay == FALSE)
27 + onlyshowin = find_value (str, "OnlyShowIn");
29 + if (onlyshowin != NULL)
36 + split = string_list_from_desktop_value (onlyshowin);
38 + while (split[i] != NULL)
40 + if (strcmp (split[i], cache->only_show_in_name) == 0)
50 + g_free (onlyshowin);
54 return entry_new (ENTRY_DIRECTORY, basename, filename, nodisplay);
60 - e = entry_new_directory_from_file (fullpath, dent->d_name);
61 + e = entry_new_directory_from_file (dir->cache, fullpath, dent->d_name);
63 menu_verbose ("Tried loading \"%s\": %s\n",
64 fullpath, e ? "ok" : "failed");