For reference, the code we use in Freeciv to decorate our menubars post bug #743265:
/**************************************************************************
Create an auxiliary menubar (i.e., not the main menubar at the top of
the window).
**************************************************************************/
GtkWidget *gtk_aux_menu_bar_new(void) {
GtkWidget *menubar = gtk_menu_bar_new();
if (g_object_class_find_property( G_OBJECT_CLASS(GTK_MENU_BAR_GET_CLASS(menubar)), "ubuntu-local")) {
g_object_set(G_OBJECT(menubar), "ubuntu-local", TRUE, NULL);
}
For reference, the code we use in Freeciv to decorate our menubars post bug #743265:
/**** ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******/ menu_bar_ new(void) {
Create an auxiliary menubar (i.e., not the main menubar at the top of
the window).
*****
GtkWidget *gtk_aux_
GtkWidget *menubar = gtk_menu_bar_new();
if (g_object_ class_find_ property(
G_OBJECT_ CLASS(GTK_ MENU_BAR_ GET_CLASS( menubar) ), "ubuntu-local")) { object_ set(G_OBJECT( menubar) , "ubuntu-local", TRUE, NULL);
g_
}
return menubar;
}