]> git.pld-linux.org Git - packages/desktop-file-utils.git/commitdiff
- moved from desktop-file-utils-directory_notshowin.patch
authorgrzegol <grzegol@pld-linux.org>
Tue, 7 Sep 2004 16:52:40 +0000 (16:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    desktop-file-utils-directory_notshowin.patch -> 1.1

desktop-file-utils-directory_notshowin.patch [new file with mode: 0644]

diff --git a/desktop-file-utils-directory_notshowin.patch b/desktop-file-utils-directory_notshowin.patch
new file mode 100644 (file)
index 0000000..1b8afcc
--- /dev/null
@@ -0,0 +1,45 @@
+diff -urN aa/desktop-file-utils-0.8/src/menu-entries.c desktop-file-utils-0.8/src/menu-entries.c
+--- aa/desktop-file-utils-0.8/src/menu-entries.c       2004-09-07 18:34:42.398864448 +0200
++++ desktop-file-utils-0.8/src/menu-entries.c  2004-09-07 18:37:29.455467984 +0200
+@@ -2035,6 +2035,7 @@
+   GError *err;
+   char *nodisplay_str;
+   char *onlyshowin;
++      char *notshowin;
+   gboolean nodisplay;
+   
+   str = NULL;
+@@ -2089,6 +2090,33 @@
+           g_free (onlyshowin);          
+         }
+     }
++      
++  if (cache->only_show_in_name && nodisplay == FALSE)
++    {
++      notshowin = find_value (str, "NotShowIn");
++  
++      if (notshowin != NULL)
++        {
++          char **split;
++          int i;
++
++          split = string_list_from_desktop_value (notshowin);
++          i = 0;
++          while (split[i] != NULL)
++            {
++              if (strcmp (split[i], cache->only_show_in_name) == 0)
++                {
++                  nodisplay = TRUE;
++                  break;
++                }
++                  
++              ++i;
++            }
++
++          g_strfreev (split);
++          g_free (notshowin);          
++        }
++    }
+   return entry_new (ENTRY_DIRECTORY, basename, filename, nodisplay);
+ }
This page took 0.125895 seconds and 4 git commands to generate.