
On 29/08/2007, at 11:37 PM, jiho wrote:
I've some GTK themes which look OK when integrated with OS X. Now if someone could tell me how to use GTK2_RC_FILES I'll be glad to try and use them in Inkscape.
Setting GTK2_RC_FILES="whatever/theme/gtkrc" in /Applications/ Inkscape.app/Contents/Resources/bin/inkscape works fine to me. I had tried this previously when first releasing OSX packages and decided there were some issues with the theme at the time (I think "Glossy P" -- the one used by Gimp.app) so I just decided not to ship the theme. Also I think if you set GTK2_RC_FILES then GTK doesn't read the users own ~/.gtkrc-2.0 file which is bad (I have gtk-font- name="Lucida Grande 12" in mine for example) Maybe the OSX themes have got better now. For Gimp, you can select the theme in the GUI, which makes me think there is a better way to set this in code and we maybe don't need to rely on clobbering the gtkrc file. Any one knowledgeable in this? I guess we could just look at how Gimp does it.
An easy way for fink people to just use the Glossy P theme if they want to is: fink intall gnome-themes-glossy-p echo "include "/sw/share/themes/Glossy_P/gtk-2.0/gtkrc "">~/.gtkrc-2.0
Cheers, Michael