Re: [gtk-list] Writing a theme engine




On Wed, 9 Jun 1999, Jason Stokes wrote:
> I'm looking for more information on writing an engine-based theme for gtk 1.2. 
>  I'm eyeballing code, of course, but I don't find the implementation of themes 
> in 1.2 all that clear.
> 

Look at one of the existing engines - you'll want to use one of those to
cut-and-paste all the boilerplate cruft anyway.

Basically you have to implement the vtable in gtkthemes.h, and 
the big part of this is implementing a GtkStyleClass to put in your
styles. grep for default_class in gtkstyle.c to see the default theme's
GtkStyleClass.

Havoc




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