mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Fix menu item alignment with submenus
We were not aligning model button labels with nesting submenus with indicators in their containing menu. This was visible in the application demo of gtk4-demo.
This commit is contained in:
parent
1758f88492
commit
0d54d73a51
@ -319,6 +319,7 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
|
|||||||
|
|
||||||
widget = g_object_new (GTK_TYPE_MODEL_BUTTON,
|
widget = g_object_new (GTK_TYPE_MODEL_BUTTON,
|
||||||
"popover", submenu,
|
"popover", submenu,
|
||||||
|
"indicator-size-group", box->indicators,
|
||||||
NULL);
|
NULL);
|
||||||
g_object_bind_property (item, "label", widget, "text", G_BINDING_SYNC_CREATE);
|
g_object_bind_property (item, "label", widget, "text", G_BINDING_SYNC_CREATE);
|
||||||
g_object_bind_property (item, "icon", widget, "icon", G_BINDING_SYNC_CREATE);
|
g_object_bind_property (item, "icon", widget, "icon", G_BINDING_SYNC_CREATE);
|
||||||
|
Loading…
Reference in New Issue
Block a user