Re: Theming an application



Hi Andrew,

On 10/3/05, Andrew Shafer <shafer realmsys com> wrote:
> Can anyone provide an example of code that sets the theme on an
> application?

One easy way is to call gtk_rc_add_default_file(
"/usr/share/themes/whatever/gtk-2.0/gtkrc" ) before you call
gtk_init():

http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html#gtk-rc-add-default-file

John



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