RE: Rethemeable app



Yes

Have you looked at:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html

and I believe, you can use:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html#gtk-rc-pa
rse

e.g. gtk_rc_parse(myfilename);

Regards,
Martyn

-----Original Message-----
From: Erik Simonsen [mailto:erik pinksheets com]
Sent: 07 February 2003 19:06
To: gtk-app-devel-list gnome org
Subject: Rethemeable app


I have an app that reads its own gtk.rc file when it runs.  I 
would like
it if a user could, from within the program, retheme the app 
by loading
another rc file.  I think I can load an additional rc file on 
top of the
rc's i'd loaded previously without any problems.  However, 
I'd prefer to
be able to unload the initial rc file before any new ones are loaded. 
Otherwise, I believe that any properties specified in the first rc but
not specified in the next rc would linger.  By the time the 
user tried 
5 or 6 themes, I'd imagine that there would be a lot of unexpected
properites hanging around.

Is there a way to reset the whole rc subsystem to system 
default without
reloading the application?

Thanks,
Erik


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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