Re: Re: Regular fonts --> Italic fonts in widgets



El mar, 23-07-2002 a las 06:53, Evan Martin escribió:
Víctor wrote:

I've a GtkLabel widget which displays text, in a default font. I'd like
to change this font (regular font) and display the label's text with an
italic font. 
 

Try:

char *newtext;
newtext = g_strdup_printf("<i>%s</i>", oldtext);
gtk_label_set_markup(GTK_LABEL(label), newtext);
g_free(newtext);



This code seems to be good, but gtk_label_set_markup is included in
GTK+-2.0, and I'm working under GTK+-1.2. Do you know how to do this
using another method?

Thanks for all, VIctor




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