ScrollAreaGadget Background Color GTK ??

Linux specific forum
bender-rulez
User
User
Posts: 49
Joined: Mon Mar 14, 2005 11:30 am

ScrollAreaGadget Background Color GTK ??

Post by bender-rulez »

Hi, I need to change the background color of a ScrollAreaGadget, can anyone help? I think that this can only be done with gtk-functions?
bender-rulez
User
User
Posts: 49
Joined: Mon Mar 14, 2005 11:30 am

Post by bender-rulez »

I tested this, but it wont work!
Any hints?

NewColor.GdkColor
NewColor\red = Red(65535) << 8
NewColor\green = Green(0) << 8
NewColor\blue = Blue(0) << 8

gdk_color_parse_ ("red",@NewColor);

gtk_widget_modify_bg_ (GadgetID(99), GTK_STATE_NORMAL, @NewColor)
gtk_widget_modify_bg_ ( GadgetID(99), GTK_STATE_PRELIGHT, @NewColor )
bender-rulez
User
User
Posts: 49
Joined: Mon Mar 14, 2005 11:30 am

Post by bender-rulez »

ok, I found out, that the Color is changed, but not in the style is used!

how to override standard colors, defined by the gtkrc-2.0 ???
Post Reply