I too use gtk_widget_modify_bg without trouble on a GtkButton object,
using GTK version 2.9.2.

Anna writes:
 > On Wed, Jun 14, 2006 at 03:30:29PM -0500, Michael Kahn wrote:
 > > I am using Gtk 2.8.18.
 > > 
 > > I would like to know how to set the background color in a GtkButton.
 > > 
 > > I cannot set the background in a style, theme, or resource file because I 
 > > am
 > > programming to requirements that specify different background colors for
 > > different buttons.
 > > 
 > > I have tried using gtk_widget_modify_bg the button, using all combinations
 > > of creating the button with and without a label.
 > 
 > I use gtk_widget_modify_bg() without trouble.  piece of a function:
 > 
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to