RE: Switching theme
- From: Madhusudan E <madhusudan huawei com>
- To: 'Paolo Franzetti' <paolo lambrate inaf it>, gtk-app-devel-list gnome org
- Subject: RE: Switching theme
- Date: Fri, 15 Dec 2006 14:57:44 +0530
Hi,
On selecting the theme,
Use, say gtk_rc_parse("/home/Madhu/gtk/Themes/AquaX/gtk-2.0/gtkrc");
Then reset the window rc styles using gtk_widget_reset_rc_styles(window);
Then reparse all...
gtk_rc_reparse_all();
I hope this helps....
Rgds,
Madhusudan
-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org] On Behalf Of Paolo Franzetti
Sent: Friday, December 15, 2006 2:24 PM
To: gtk-app-devel-list gnome org
Subject: Switching theme
Hi.
In my GTK application I have put in the main() these lines:
gtk_init(&argc, &argv);
gtk_rc_parse("/home/paolo/mygtkthemes/MY_THEME/gtk-2.0/gtkrc");
gtk_main();
In this way the application starts using the 'MY_THEME' theme.
During the execution I would like to be able to switch to
another theme; I guess I should use the gtk_rc_reset_styles()
function, but I did not find anywhere a simple example on how
to use it.
Anyone can help me?
Thank you very much,
Paolo
_______________________________________________
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]