]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.9.2/mb-panel-allow-disabling-menu-panel.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / matchbox-panel / matchbox-panel-0.9.2 / mb-panel-allow-disabling-menu-panel.patch
1 --- matchbox-panel-0.9.2.multi/applets/mb-applet-menu-launcher.c        2006-02-16 00:43:28.000000000 +0100
2 +++ matchbox-panel-0.9.2/applets/mb-applet-menu-launcher.c      2006-02-17 20:25:14.000000000 +0100
3 @@ -392,7 +392,8 @@
4    FILE *fp;
5    char *buf;
6    int len;
7 -  MBMenuMenu *menu_panel;
8 +  MBMenuMenu *menu_panel = NULL;
9 +  char *menu_panel_disabled = getenv ("MB_MENU_PANEL_DISABLED");
10    char *tmp_path = NULL, *tmp_path2 = NULL ;
11  
12    char vfolder_path_root[512];
13 @@ -453,8 +454,8 @@
14  
15      }
16  
17 -  menu_panel = mb_menu_add_path(app_data->mbmenu, "Utilities/Panel" , NULL, MBMENU_NO_SORT );
18 -
19 +  if (!menu_panel_disabled)
20 +    menu_panel = mb_menu_add_path(app_data->mbmenu, "Utilities/Panel" , NULL, MBMENU_NO_SORT );
21  
22    tmp_path = mb_dot_desktop_icon_get_full_path (app_data->theme_name, 
23                                                 16, 
24 @@ -620,6 +621,9 @@
25                           && !strcmp(mb_dotdesktop_get(dd, "Type"), 
26                                      "PanelApp"))
27                         {
28 +                         if (menu_panel_disabled)
29 +                           continue;
30 +
31                           m = menu_panel;
32                         }
33