[Gtk-sharp-list] Change color

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Jun 1 12:53:10 EDT 2006


On 6/1/06, Elmar Haneke <elmar at haneke.de> wrote:
> Hi,
>
> can you please give me some example how to change (background) Color of
> Gtk.Button (and other widgets).

Use the ModifyBg(StateType state, Gdk.Color color) method that's
inherited from the Widget class.

The part that changes color may not be the part you expect. The email
http://lists.ximian.com/pipermail/gtk-sharp-list/2006-April/007097.html
and other ones in that conversation explain why.

Michael


More information about the Gtk-sharp-list mailing list