Hello everybody,
I am trying to add a default GTK theme to Inkscape (on OS X but the issue is probably generic enough). So I added the theme to an Inkscape specific directory and pointed the variable GTK2_RC_FILES to it and the theme is used. Fine. But I also want Inkscape to honor ~/.gtkrc-2.0 when it exists, so that the user can override the default gtk theme we'll ship if he/she likes to. GTK2_RC_FILES looks much like nay PATH variable with path element separated by semicolons, so I used: export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc/:$TOP/themes/Default/ gtk-2.0/gtkrc:$HOME/.gtkrc-2.0" where $TOP is an Inkscape specific dir and $HOME/.gtkrc-2.0 points to a theme in $HOME/.themes which works and is used by Inkscape when GTK2_RC_FILES is not set. From the little I could find about GTK2_RC_FILES it looks like the order is inverted compared to PATH: the last argument prevails (and I've tried the other way around with the same result anyway). However, this does not use the theme defined in ~/.gtkrc-2.0, it still uses the theme in Inkscape's directory. So I could add a check for the existence of ~/.gtkrc-2.0 and define export GTK2_RC_FILES only if it does not exist but I was looking for a more generic solution and for the correct way to use GTK2_RC_FILES. Is someone knowledgeable enough with GTK to point me in the right direction? How do the Windows folks do: is it possible to override the default GTK theme on windows?
Thanks in advance.
JiHO --- http://jo.irisson.free.fr/
participants (1)
-
jiho