overridding the theme in ~.gtkrc-2.0



Hi,

I'm toying around with the idea of having a custom resource
directory for an app, like ~./myapp , and have a custom .gtkrc-2.0 
in it to parse at the beginning of the script, to get custom colors.

However, it seems it is not possible, as the ~.gtkrc-2.0 file seems
to override what is parsed in the script. 
For instance, I have 2 themes, Z and BumbleBee.

In my ~.gtkrc-2.0, I have 1 line for my default theme
#######################################
include "/usr/local/share/themes/Z/gtk-2.0/gtkrc"
#######################################


In an application, where I would like to use BumbleBee, I have
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#!/usr/bin/perl                                                                           
use warnings; 
use strict; 
use Glib qw/TRUE FALSE/; 
use Gtk2 '-init'; 

Gtk2::Rc->parse_string(<<__);                                                             
                                                                                          
include "/usr/local/share/themes/Bumblebee/gtk-2.0/gtkrc"
__ 

....rest of script
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


The app will always run with my Z theme, unless I remove ~.gtkrc-2.0

Is there a way to force the app to use BumbleBee, without modifying ~.gtkrc-2.0?

Thanks,
zentara


-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html



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