Ruby/GTK: changing color of a widget

hi everybody,

i would like to change the color of my button, but i can’t due of the
lack of GtkRcStyle binding in Ruby.

Does anyone have an idea?

thanks

···


/***********************************************************************/
/
Guillaume Pierronnet guillaume.pierronnet@ratp.fr /
/
***********************************************************************/

i would like to change the color of my button, but i can’t due of the
lack of GtkRcStyle binding in Ruby.

Does anyone have an idea?

You can make anything like…

style = widget.get_style.copy
style.set_fg GTK::STATE_NORMAL, r, g, b
style.set_fg ...
style.set_bg ...
widget.set_style style

Good luck.