On Mon, 17 Feb 2003 14:18:22 -0500 Havoc Pennington <hp redhat com> wrote: > 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 Can anyone please point me to URL with a tutorial on styles and themes in gtk+ and to gtk+ apps 'beautification' in general? I have read gtk docs from gtk.org, but I just can't seem to find a place to start and catch up on this in them. (it's a function reference mostly, and I need principles explained...) Thanks a lot -- Andrej "Ticho" Kacian mailto:tichowrl centrum sk "Don't forget that MS-Windows is just a temporary workaround until you can switch to a GNU system." -GnuPG creators
Attachment:
pgpxfKykL0DmI.pgp
Description: PGP signature