Making a label text bold
- From: Anjali Grover <anjali_grover yahoo com>
- To: gtk-list gnome org
- Subject: Making a label text bold
- Date: Tue, 26 Feb 2002 02:02:48 -0800 (PST)
Hi,
In order to get a bold label text, I loaded the
desired font into GtkFont boldfont;
Then I tried to get bold label text via:
label=gtk_label_new(text);
style = gtk_widget_get_style(label);
style->font = boldfont;
The result was everything bold, inlcuding the text in
all buttons on my window.
Then, I made a copy of GdkStyle, so I tried:
label=gtk_label_new(text);
style = gtk_widget_get_style(label);
bstyle = *style;
bstyle.font = boldfont;
gtk_widget_set_style(label, &bstyle);
The result was: nothing bold.
I can't trace the problem:(
Regards,
Anjali
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]