From c12a09d24e7e99cca4f2c07edd0bb351862efd1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Le=20Roux?= Date: Sat, 22 Jul 2023 18:11:00 +0100 Subject: [PATCH] MenuSectionBox: use-markup on labels of submenus To use markup label in menu items, when the menu item has a submenu. Small additions to 'gtk/gtkmenusectionbox.c' to set the markup attribute for menu items with submenus. Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5946 --- gtk/gtkmenusectionbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c index 739c890563..90e07a4480 100644 --- a/gtk/gtkmenusectionbox.c +++ b/gtk/gtkmenusectionbox.c @@ -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);