Hi ,
Please review the patch below for d.o.o Bug #7716 Main Menu and Menu Bar
applet don't support gconf restrict_application_launching key.
This patch is modification on the earlier gnome-panel patch
gnome-panel-07-restrict-app-launching.diff.
Diff was taken on opensolaris-2009-06 spec files.
Code Changes:
--- gnome-panel-2.24.2.orig/gnome-panel/menu.c 2009-06-09
17:27:06.124573406 +0530
+++ gnome-panel-2.24.2/gnome-panel/menu.c 2009-06-09
17:28:50.818229836 +0530
@@ -1612,12 +1638,18 @@ create_menuitem (GtkWidget *men
g_signal_connect (menuitem, "activate",
G_CALLBACK (activate_app_def), entry);
- gtk_widget_show (menuitem);
+ if (entry != NULL && !panel_lockdown_is_allowed_menu_entry
(entry)) {
+ gtk_widget_hide (menuitem);
+ *is_hidden = TRUE;
+ }else {
+ gtk_widget_show (menuitem);
+ }
}
static void
create_menuitem_from_alias (GtkWidget *menu,
Pls. find the complete patch in the attachment.
Thanks,
Abhijit
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gnome-panel-07-restrict-app-launching.diff
URL:
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20090611/fb2b03ba/attachment.ksh>