]> git.pld-linux.org Git - packages/xfce4-panel.git/blob - xfce4-panel-generic-menu.patch
- prefer generic applications.menu
[packages/xfce4-panel.git] / xfce4-panel-generic-menu.patch
1 --- xfce4-panel-4.7.4/plugins/applicationsmenu/applicationsmenu.c~      2010-11-03 20:41:40.000000000 +0100
2 +++ xfce4-panel-4.7.4/plugins/applicationsmenu/applicationsmenu.c       2010-11-15 13:37:28.712464684 +0100
3 @@ -945,15 +945,16 @@
4          }
5        else
6          {
7 -          /* lookup the xfce-applications.menu file */
8 -          filename = xfce_resource_lookup (XFCE_RESOURCE_CONFIG, DEFAULT_MENU);
9 -          if (G_LIKELY (filename != NULL))
10 -            menu = garcon_menu_new_for_path (filename);
11 -          g_free (filename);
12 +          /* load default menu */
13 +          menu = garcon_menu_new_applications ();
14  
15 -          /* fallback to the default menu */
16 -          if (G_UNLIKELY (menu == NULL))
17 -            menu = garcon_menu_new_applications ();
18 +          /* fallback to the xfce-applications.menu file */
19 +          if (G_UNLIKELY (menu == NULL)) {
20 +            filename = xfce_resource_lookup (XFCE_RESOURCE_CONFIG, DEFAULT_MENU);
21 +            if (G_LIKELY (filename != NULL))
22 +              menu = garcon_menu_new_for_path (filename);
23 +            g_free (filename);
24 +         }
25          }
26  
27        if (menu != NULL
This page took 0.038972 seconds and 3 git commands to generate.