]>
Commit | Line | Data |
---|---|---|
bd0d63a1 | 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:34:42.398864448 +0200 | |
3 | +++ desktop-file-utils-0.8/src/menu-entries.c 2004-09-07 18:37:29.455467984 +0200 | |
4 | @@ -2035,6 +2035,7 @@ | |
5 | GError *err; | |
6 | char *nodisplay_str; | |
7 | char *onlyshowin; | |
8 | + char *notshowin; | |
9 | gboolean nodisplay; | |
10 | ||
11 | str = NULL; | |
12 | @@ -2089,6 +2090,33 @@ | |
13 | g_free (onlyshowin); | |
14 | } | |
15 | } | |
16 | + | |
17 | + if (cache->only_show_in_name && nodisplay == FALSE) | |
18 | + { | |
19 | + notshowin = find_value (str, "NotShowIn"); | |
20 | + | |
21 | + if (notshowin != NULL) | |
22 | + { | |
23 | + char **split; | |
24 | + int i; | |
25 | + | |
26 | + split = string_list_from_desktop_value (notshowin); | |
27 | + i = 0; | |
28 | + while (split[i] != NULL) | |
29 | + { | |
30 | + if (strcmp (split[i], cache->only_show_in_name) == 0) | |
31 | + { | |
32 | + nodisplay = TRUE; | |
33 | + break; | |
34 | + } | |
35 | + | |
36 | + ++i; | |
37 | + } | |
38 | + | |
39 | + g_strfreev (split); | |
40 | + g_free (notshowin); | |
41 | + } | |
42 | + } | |
43 | ||
44 | return entry_new (ENTRY_DIRECTORY, basename, filename, nodisplay); | |
45 | } |