mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 11:50:21 +00:00
Merge branch 'app_menubar_a11y_label' into 'main'
applicationwindow: set menubar a11y label See merge request GNOME/gtk!7640
This commit is contained in:
commit
ab41a549f8
@ -29,6 +29,8 @@
|
|||||||
#include "gtkshortcutswindowprivate.h"
|
#include "gtkshortcutswindowprivate.h"
|
||||||
#include "gtktooltipprivate.h"
|
#include "gtktooltipprivate.h"
|
||||||
|
|
||||||
|
#include <glib/gi18n-lib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GtkApplicationWindow:
|
* GtkApplicationWindow:
|
||||||
*
|
*
|
||||||
@ -230,6 +232,9 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window)
|
|||||||
g_menu_append_section (combined, NULL, G_MENU_MODEL (priv->menubar_section));
|
g_menu_append_section (combined, NULL, G_MENU_MODEL (priv->menubar_section));
|
||||||
|
|
||||||
priv->menubar = gtk_popover_menu_bar_new_from_model (G_MENU_MODEL (combined));
|
priv->menubar = gtk_popover_menu_bar_new_from_model (G_MENU_MODEL (combined));
|
||||||
|
gtk_accessible_update_property (GTK_ACCESSIBLE (priv->menubar),
|
||||||
|
GTK_ACCESSIBLE_PROPERTY_LABEL, _("Menu bar"),
|
||||||
|
-1);
|
||||||
gtk_widget_set_parent (priv->menubar, GTK_WIDGET (window));
|
gtk_widget_set_parent (priv->menubar, GTK_WIDGET (window));
|
||||||
g_object_unref (combined);
|
g_object_unref (combined);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user