LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libgarcon-x-suse-unimportant-support.patch of Package libgarcon (Project home:ddelin:Xfce_4.12)

diff -urNp garcon-0.1.9.orig/garcon/garcon-menu-item.c garcon-0.1.9/garcon/garcon-menu-item.c
--- garcon-0.1.9.orig/garcon/garcon-menu-item.c	2011-09-12 20:24:20.000000000 +0200
+++ garcon-0.1.9/garcon/garcon-menu-item.c	2011-09-19 15:33:48.546999961 +0200
@@ -732,7 +732,8 @@ garcon_menu_item_new (GFile *file)
       icon = xfce_rc_read_entry_untranslated (rc, G_KEY_FILE_DESKTOP_KEY_ICON, NULL);
       path = xfce_rc_read_entry_untranslated (rc, G_KEY_FILE_DESKTOP_KEY_PATH, NULL);
       terminal = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_TERMINAL, FALSE);
-      no_display = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, FALSE);
+      no_display = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, FALSE)
+                   || xfce_rc_read_bool_entry (rc, "X-SuSE-Unimportant", FALSE);
       startup_notify = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY, FALSE)
                        || xfce_rc_read_bool_entry (rc, "X-KDE-StartupNotify", FALSE);
       hidden = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_HIDDEN, FALSE);
@@ -912,7 +913,8 @@ garcon_menu_item_reload_from_file (Garco
   boolean = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_TERMINAL, FALSE);
   garcon_menu_item_set_requires_terminal (item, boolean);
 
-  boolean = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, FALSE);
+  boolean = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, FALSE)
+            || xfce_rc_read_bool_entry (rc, "X-SuSE-Unimportant", FALSE);
   garcon_menu_item_set_no_display (item, boolean);
 
   boolean = xfce_rc_read_bool_entry (rc, G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY, FALSE)