Re: Re: how to set Style Properties



On Mon, Feb 17, 2003 at 02:37:33PM +0800, luo wrote:
> >On Mon, Feb 17, 2003 at 01:55:22PM +0800, luo wrote:
> >>   I can use gtk_widget_style_get_property to get >>widget style property.But how do I set the widget >>style?
> >> For example,how do I set the widget 'cursor-color' >>property?
> >
> >This is done by the theme, in the theme's gtkrc file.
> >
> >Havoc
> Thank Havoc,But if I want to set the style proeprty in my code.What should I do?
> There is a g_object_set call  to object property,is there a gtk_widget_style_set_property call?

I think you have to do something like create a GtkRcStyle and apply it
to the widget with gtk_widget_modify_style(). Not sure of the details.
Basically do your own little mini-theme to override the theme.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]