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

Re: Correct way to specify GTK 1.x theme?



Thanks Luis and Nick,

With the hint about ~/.gtkrc-1.2-gnome, and the themes with a corresponding
1.x component under /usr/share/themes, I'm on my way.

As an aside, there's an environment variable GTK_RC_FILES that is set to
"/etc/gtk/gtkrc:~/.gtkrc-1.2-gnome" which I think is why the bog-standard
~/.gtkrc is not getting picked up.  I guess this is how G-2.4 ensures that
only its theme-selector -selected 1.x theme gets picked up, and also why
Luis's system-wide default works.

Does this have implications for the 'gtk-theme-switch' package?
Considering some people don't use G-2.4 (gasp), maybe it should do
something like detecting whether GTK_RC_FILES includes "~/.gtkrc-1.2-gnome"
and suggest using the G-2.4 theme selector instead, or at least warn about
the current behaviour.

Cheers,
-Dave.



                                                                                                                                              
                    Nick Monkman                                                                                                              
                    <nick_m@crossw       To:     david.venz@invensys.com                                                                      
                    inds.net>            cc:     debian-gtk-gnome@lists.debian.org                                                            
                                         Subject:     Re: Correct way to specify GTK 1.x theme?                                               
                    05/01/2004                                                                                                                
                    01:41 PM                                                                                                                  
                    Please respond                                                                                                            
                    to nick_m                                                                                                                 
                                                                                                                                              
                                                                                                                                              




Hi David,

As far as I can tell, while running Gnome 2, Gnome uses the
.gtkrc-1.2-gnome file for all gnome 1.x settings. A workaround is to do
the following:

cp .gtkrc .grkrc-1.2-gnome

Then start up X normally. This will work as a one-time fix, but it sucks
for a number of reasons, chief among them is the fact that Gnome 2 will
overwrite your .gtkrc-1.2-gnome file with default theme information. I
think it tries to match your gnome 2 theme to a gnome 1 theme and if it
can't find it it will use the default theme. Try finding a matching gtk
1.x theme for your gtk 2 theme and installing it
/usr/share/themes/(themename) directory with your gtk 2 theme. Then
Gnome 2 will automatically use the correct gtk1.x theme (by writing to
that .gtkrc-1.2-gnome file) I haven't tried this yet, but I think that's
how it is supposed to work.

Hmm other gtk1.x apps...I think grip is still 1.x

Good luck,
Nick


On Sun, 2004-01-04 at 19:24, david.venz@invensys.com wrote:
> Hello,
>
> Currently running testing/unstable with GNOME 2.4 on x86.
>
> I want to get rid of the ugly fonts / select another theme for all GTK
1.x
> apps like gnucash and xmms.  When I use gtk-theme-switch, it writes to
> ~/.gtkrc OK.  I've got a font override in ~/.gtkrc-mine.  But I'm not
> seeing those apps using the theme I selected...   Could someone please
> suggest:
> 1) Some other 1.x apps to try, to see whether it's a problem across the
> board
> 2) Some other "Debian" way of setting 1.x themes?
>
> TIA,
> -Dave.
>







Reply to: