Merge branch 'dboles/issue5946' into 'main'

MenuSectionBox: use-markup on labels of submenus

Closes #5946

See merge request GNOME/gtk!6209
This commit is contained in:
Matthias Clasen 2023-07-28 08:47:33 +00:00
commit e82bdd8c0d

View File

@ -359,6 +359,7 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
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);
g_object_bind_property (item, "use-markup", widget, "use-markup", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "sensitive", widget, "sensitive", G_BINDING_SYNC_CREATE);
g_signal_connect (submenu, "show", G_CALLBACK (submenu_shown), item);
@ -376,6 +377,7 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
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);
g_object_bind_property (item, "use-markup", widget, "use-markup", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "sensitive", widget, "sensitive", G_BINDING_SYNC_CREATE);
get_ancestors (GTK_WIDGET (box->toplevel), GTK_TYPE_STACK, &stack, &parent);