Merge branch 'fix-menu-alignment' into 'master'

Fix menu item alignment with submenus

See merge request GNOME/gtk!3016
This commit is contained in:
Matthias Clasen 2020-12-29 17:41:49 +00:00
commit 02ba9bc1da

View File

@ -319,6 +319,7 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
widget = g_object_new (GTK_TYPE_MODEL_BUTTON,
"popover", submenu,
"indicator-size-group", box->indicators,
NULL);
g_object_bind_property (item, "label", widget, "text", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "icon", widget, "icon", G_BINDING_SYNC_CREATE);