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;
   //set radiobutton style
    gtk_widget_set_style(radiobutton1,style);

    .........
}



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