[gtk/kill-tree-menu: 13/52] applicationwindow: Stop using a menu bar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 13/52] applicationwindow: Stop using a menu bar
- Date: Sun, 29 Dec 2019 03:03:55 +0000 (UTC)
commit ba54e057f4986373360ad57287f77f95becd2db1
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 26 23:49:26 2019 -0500
applicationwindow: Stop using a menu bar
We have a replacement with popovers now.
gtk/gtkapplicationwindow.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index bd6a58de8c..63e31713cd 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]