There are two ways you can do it. One by using styles, and the second by using markup. They are both as easy. To use the style approach you set a name for your widget and then associate that name with a given style. I described this in my Gtk perl tutorial a few years back:
http://gtk2-perl.sourceforge.net/doc/yapc-2004-perl-gtk2/slides.html Search for "set_name". The approach is obviously the same in vala. Regarding not using markup, you can always write some utility routine called boldify() or something that takes care of escaping and of adding the necessary markup. Hope this helps. Regards, Dov 2009/6/16 Fredderic <[email protected]> > 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) > > _______________________________________________ > Vala-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list > >
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
