Re: [gtk-list] how to change the font of radiobutton
- From: "Donna S. Martin" <donna omartin com>
- To: <gtk-list redhat com>
- Subject: Re: [gtk-list] how to change the font of radiobutton
- Date: Tue, 31 Aug 1999 19:17:42 -0600
Because a RadioButton doesn't have a font,
but its child Label widget does. You are setting
the style of the wrong widget.
Donna
----- Original Message -----
From: Jiang XU <jiang.xu@echostar.com>
To: <gtk-list@redhat.com>
Sent: Tuesday, August 31, 1999 3:16 PM
Subject: [gtk-list] how to change the font of radiobutton
> I can change fonts and color of other widgets, such as label..; but it
> never works on the RadioButton widget, I wonder why?
>
> The sample code:
> {
> ......
>
> style=gtk_style_new();
>
> font=gdk_font_load("-b&h-lucida-bold-r-normal-*-*-180-*-*-p-*-iso8859-1");
>
> style->fg[GTK_STATE_NORMAL]=subtitlecolor;
> style->font=font;
> style->bg[GTK_STATE_PRELIGHT]=prelightcolor;
> file://set radiobutton style
> gtk_widget_set_style(radiobutton1,style);
>
> .........
> }
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
/dev/null
>
>
>
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]