[Vala] Simple help needed with setting Pango Attributes...



Okay...  This should be easy, but I can't figure it.

How do I create a GtkLabel with bold text, without using markup?

I presently use:
        new Gtk.Label("<b>"+text+"</b>")
but I need it to display a string that contains markup-like text, and
I'd rather not have to escape the text, just so I can add bold markup.


-- 
Fredderic

Debian/unstable (LC#384816) on i686 2.6.26-2-686 2009 (up 4 days, 16:23)

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]