Praveen:

This patch is reported upstream to bugzilla.gnome.org here:

   http://bugzilla.gnome.org/show_bug.cgi?id=394249

Please also provide the updated patch here as well.

Thanks,

Brian


>> 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
> 
> Looks fine
> I agree
> 
> ~Praveen


Reply via email to