Re: Theming an application



Awesome

What can you do to switch themes while the application is running?


On Mon, 2005-10-03 at 18:25 +0100, John Cupitt wrote:
> 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]