how to change font of a radio butoon?



>Because a RadioButton doesn't have a font,
>but its child Label widget does.  You are setting
>the style of the wrong widget.

So how to get the child label?


> 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);
>
>     .........
> }



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