Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I set my labels to use_markup in glade-2. Why don they markup the contents I set?

Contents labels Markup
0
Posted

I set my labels to use_markup in glade-2. Why don they markup the contents I set?

0

Marking up the contents of a label is a bit tricky. There are two things to wrap your head around: • always use set_markup() if you want the content you are setting to be parsed as markup — do NOT use set_text() (it will happily ignore the markup and you will be left in a confused state where will you wander into this FAQ). • The glade use_markup setting is actually the ‘use-markup’ gtk.Label GObject property. “use-markup” only controls how to interpret the text given in the ‘label’ property. label.

0

Marking up the contents of a label is a bit tricky. There are two things to wrap your head around: • always use set_markup() if you want the content you are setting to be parsed as markup — do NOT use set_text() (it will happily ignore the markup and you will be left in a confused state where will you wander into this FAQ). • The glade use_markup setting is actually the ‘use-markup’ gtk.Label GObject property. “use-markup” only controls how to interpret the text given in the ‘label’ property.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123