Hi,
I have one doubt, How to change the
button label font (Caption of button). I tried the following but it changes
the font of entire wigdets available on window.
button1 = gtk_button_new_with_label
("Display");
gtk_widget_set_name (button1, "display button"); gtk_widget_ref (button1); gtk_object_set_data_full (GTK_OBJECT (window1), "button1", button1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (button1); gtk_fixed_put (GTK_FIXED (fixed1), button1, 136, 256); gtk_widget_set_uposition (button1, 40, 222); gtk_widget_set_usize (button1, 49, 24); style = gtk_style_copy(gtk_widget_get_style(button1)); style->font=font; gtk_widget_set_style( button1, style ) ; I also tried using style in .rc file but in
vain
Please help in this regard.
Regards
Umesh
|