From: Sébastien Le Roux Date: Sat, 22 Jul 2023 17:11:00 +0000 (+0100) Subject: MenuSectionBox: use-markup on labels of submenus X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~30^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c12a09d24e7e99cca4f2c07edd0bb351862efd1d;p=gtk4.git 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 --- 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);