GTK 4 menus and pango markup

Hello word,

this message follow this post: GTK4 : menus and pango markup

After few months I am getting back on this subject, I am still getting stuck on using Pango markup in menus.
The thing is, that I can do it if I use XML file to design the menus, then the following works:

   <attribute name="use-markup">TRUE</attribute>

However in my app I need to do this in the code, since I cannot use XML files to design menus,
and the following does not work:

   g_menu_item_set_attribute (item, "use-markup", "b", TRUE, NULL);

Any idea(s) to help me ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.