Re: Switching theme
hi, another example of runtime changing the theme can be found in The Widget Factory, see http://www.stellingwerff.com/?page_id=10 The source is straight forward. On 12/19/06, Madhusudan E <[EMAIL PROTECTED]> wrote: > Hi... > Probably u can even use existing applications on net to change themes on the > fly > http://www.muhri.net/nav.php3?node=gts > download gtk-theme-switch > Hope this helps. > Rgds, > Madhusudan E > > > This e-mail and attachments contain confidential information from HUAWEI, > which is intended only for the person or entity whose address is listed > above. Any use of the information contained herein in any way (including, > but not limited to, total or partial disclosure, reproduction, or > dissemination) by persons other than the intended recipient's) is > prohibited. If you receive this e-mail in error, please notify the sender by > phone or email immediately and delete it! > > -Original Message- > From: Paolo Franzetti [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 19, 2006 1:41 PM > To: Madhusudan E > Subject: Re: Switching theme > > Madhusudan E wrote: > > 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 > > > > > > Thanks for the suggestion. > > It "almost" works ... > > The first time I switch theme it works (a part for the menu from > which I launch the command); then it works no more, or it works > partially (some widgets updated, some not). > > I am using libglade to build my application; it could be a problem? > > Thanks again, > Paolo > > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Switching theme
Hi... Probably u can even use existing applications on net to change themes on the fly http://www.muhri.net/nav.php3?node=gts download gtk-theme-switch Hope this helps. Rgds, Madhusudan E This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! -Original Message- From: Paolo Franzetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 1:41 PM To: Madhusudan E Subject: Re: Switching theme Madhusudan E wrote: > 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 > > Thanks for the suggestion. It "almost" works ... The first time I switch theme it works (a part for the menu from which I launch the command); then it works no more, or it works partially (some widgets updated, some not). I am using libglade to build my application; it could be a problem? Thanks again, Paolo ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Switching theme
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list