applicationwindow: Stop using a menu bar
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Dec 2019 04:49:26 +0000 (23:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 Dec 2019 22:10:16 +0000 (17:10 -0500)
We have a replacement with popovers now.

gtk/gtkapplicationwindow.c

index bd6a58de8c283099764fc01f4dd48ed4fc9a99ae..63e31713cdfe2a6ee7464588e3cd018594631e23 100644 (file)
@@ -25,7 +25,7 @@
 #include "gtkwidgetprivate.h"
 #include "gtkwindowprivate.h"
 #include "gtkheaderbar.h"
-#include "gtkmenubar.h"
+#include "gtkpopovermenubar.h"
 #include "gtkintl.h"
 #include "gtksettings.h"
 #include "gtkshortcutswindowprivate.h"
@@ -70,7 +70,7 @@
  * will display the application menu, but not the menubar.
  *
  * If the desktop environment does not display the menubar, then
- * #GtkApplicationWindow will automatically show a #GtkMenuBar for it.
+ * #GtkApplicationWindow will automatically show a menubar for it.
  * This behaviour can be overridden with the #GtkApplicationWindow:show-menubar
  * property. If the desktop environment does not display the application
  * menu, then it will automatically be included in the menubar or in the
@@ -273,7 +273,7 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window)
       g_menu_append_section (combined, NULL, G_MENU_MODEL (priv->app_menu_section));
       g_menu_append_section (combined, NULL, G_MENU_MODEL (priv->menubar_section));
 
-      priv->menubar = gtk_menu_bar_new_from_model (G_MENU_MODEL (combined));
+      priv->menubar = gtk_popover_menu_bar_new_from_model (G_MENU_MODEL (combined));
       gtk_widget_set_parent (priv->menubar, GTK_WIDGET (window));
       g_object_unref (combined);
     }