Comment 1 for bug 1242937

Revision history for this message
Jacob Nevins (0jacobnk-ulp) wrote :

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);
    }

    return menubar;
  }