You are not logged in.

#1 2014-12-29 12:12:43

Shaddar
Member
Registered: 2014-12-29
Posts: 3

[SOLVED] Gtk2 applications don't use gtk theme

Hello together,

I have a problem with the gtk2 theme and I already searched a lot but didn't get an answer to my problem.
When I choose any other gtk theme than Adwaita all gtk2 applications looks ugly. Like this: https://lh5.googleusercontent.com/-EPu6 … %C2%AB.png

When I run the apps from the terminal there's no message for a missing engine. Also the gtkrc file tell me what the "pixmap" engine is required. I've installed the gtk-engines packagekit and have a libpixmap.so file under /usr/lib/gtk-2.0/2.10.0/engines/ but it's still not working. Then I found this threads here: https://bbs.archlinux.org/viewtopic.php?id=171050.

First there was no output for `env | grep GTK` so I set `export GTK2_RC_FILES=$HOME/.gtkrc-2.0`
But there was no .gtkrc-2.0 file in my home directory. I created this file manually and it looks like this:

gtk-icon-theme-name = "Faience"
gtk-theme-name = "Ceti-3.14"

But it still doesn't work. Help please.

Last edited by Shaddar (2014-12-29 23:04:12)

Offline

#2 2014-12-29 12:33:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Gtk2 applications don't use gtk theme

Shaddar wrote:

When I choose any other gtk theme...

First there was no output for `env | grep GTK` so I set `export GTK2_RC_FILES=$HOME/.gtkrc-2.0`
But there was no .gtkrc-2.0 file in my home directory. I created this file manually and it looks like this

Then what do you mean you chose another gtk theme?  How did you do this?  What tool did you use?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-12-29 17:38:03

Shaddar
Member
Registered: 2014-12-29
Posts: 3

Re: [SOLVED] Gtk2 applications don't use gtk theme

Sorry, I use the gnome-tweak tool to set the icons and themes.

Offline

#4 2014-12-29 17:40:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Gtk2 applications don't use gtk theme

That's the problem.  The package description for that says "A tool to customize advanced GNOME 3 options".  It does not customize or set themes for gtk2 applications.  See here for tools that help configure gtk2 themes.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-12-29 18:33:51

Shaddar
Member
Registered: 2014-12-29
Posts: 3

Re: [SOLVED] Gtk2 applications don't use gtk theme

I set up the .gtkrc-2.0 file as I mentioned before. But now I changed one line.

From:
gtk-theme-name = "Ceti-3.14"

To:
include "/home/shaddar/.local/share/themes/Ceti-3.14/gtk-2.0/gtkrc"

And now it works. Thanks for the help. Do you know if there is a way that the gtk2 theme is always the same as the gtk3 theme or is there a way to set both gtk2 and gtk3 theme from one place ?

Offline

Board footer

Powered by FluxBB