Please support VectorLinux!

Author Topic: Gtk Themes not finding their Engines. (((SOLVED)))  (Read 6791 times)

taime1

  • Member
  • *
  • Posts: 22
Gtk Themes not finding their Engines. (((SOLVED)))
« on: May 06, 2008, 10:30:36 am »
i compiled a couple different theme engines (clearlooks and nimbus), and whether i use --prefix=/usr or not, the themes that depend on those engines do not seem to be able to find them. in other words, the themes fail. ugly widgets, scroll bars etc... what am i doing wrong?
« Last Edit: May 06, 2008, 04:27:40 pm by taime1 »

|nic|

  • Packager
  • Vectorite
  • ****
  • Posts: 162
    • My Blog
Re: Gtk Thmes not finding their Engines.
« Reply #1 on: May 06, 2008, 11:04:43 am »
Hi,

I have kind of the same problem. What I did is type the theme that I wanted to use in the .gtkrc-2.0 file in my home directory. I'm using Clearlooks-Deepsky.

so my file looks like this:

Code: [Select]
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/Clearlooks-Deepsky/gtk-2.0/gtkrc"

include "/home/nic/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

hope this can help.

greetz

registered user #393337

Desktop AMD E6 / 8 gb ram / 120 GB SSD / 500 gb HD / VL7

Samsung NP110 / VL7.1 Std

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Thmes not finding their Engines.
« Reply #2 on: May 06, 2008, 11:10:07 am »
If you are using VL5.9 Standard (can't confirm the others at the moment), your theme engines should end up in:
/usr/lib/gtk-2.0/2.10.0/engines

I didn't attempt nimbus, but I did compile and install clearlooks without any issues just the other day.

Try opening a application that uses gtk from the command line in a console.  You will see error messages flashing by that might give you clues what is going wrong.

taime1

  • Member
  • *
  • Posts: 22
Re: Gtk Thmes not finding their Engines.
« Reply #3 on: May 06, 2008, 11:59:52 am »
my themes did not end up in that foler. in fact, they are in all kinds of other folders like /usr/gtk/.... and /user/local/gtk....

i tried using --prefix=/usr/lib   but got nothing. how can i get these engines to install correctly?

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #4 on: May 06, 2008, 01:09:45 pm »
I used this file:
http://www.gnome-look.org/CONTENT/content-files/19527-clearlooks-0.6.2.tar.bz2

Located on this page:
http://www.gnome-look.org/content/show.php?content=19527

I extracted, and built it with the basic commands:
./configure --prefix=/usr
make
make install

It just worked.

Quote
leeh:$ ls /usr/lib/gtk-2.0/2.10.0/engines/

libclearlooks.la*  libpixmap.la*  libsvg.la*  libxfce.la*
libclearlooks.so*  libpixmap.so*  libsvg.so*  libxfce.so*

Besides the theme engine, it will also install some themes that use the engine.  Here's a list of all the files it created:
Quote
/usr/
/usr/lib/
/usr/lib/gtk-2.0/
/usr/lib/gtk-2.0/2.10.0/
/usr/lib/gtk-2.0/2.10.0/engines/
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.la
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
/usr/share/
/usr/share/icons/
/usr/share/icons/Clearlooks/
/usr/share/icons/Clearlooks/16x16/
/usr/share/icons/Clearlooks/16x16/gtk/
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-first-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-refresh.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-cancel.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-last-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-forward-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-forward-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-bottom.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-back-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-back-ltr.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-down.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-first-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-apply.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-last-rtl.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-go-up.png
/usr/share/icons/Clearlooks/16x16/gtk/gtk-goto-top.png
/usr/share/icons/Clearlooks/24x24/
/usr/share/icons/Clearlooks/24x24/gtk/
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-first-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-refresh.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-cancel.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-last-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-forward-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-ok.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-forward-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-bottom.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-back-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-back-ltr.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-down.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-first-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-apply.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-last-rtl.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-go-up.png
/usr/share/icons/Clearlooks/24x24/gtk/gtk-goto-top.png
/usr/share/icons/Clearlooks/index.theme
/usr/share/themes/
/usr/share/themes/Clearlooks-Quicksilver/
/usr/share/themes/Clearlooks-Quicksilver/gtk-2.0/
/usr/share/themes/Clearlooks-Quicksilver/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks-DeepSky/
/usr/share/themes/Clearlooks-DeepSky/gtk-2.0/
/usr/share/themes/Clearlooks-DeepSky/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks/
/usr/share/themes/Clearlooks/gtk-2.0/
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks/index.theme
/usr/share/themes/Clearlooks-Olive/
/usr/share/themes/Clearlooks-Olive/gtk-2.0/
/usr/share/themes/Clearlooks-Olive/gtk-2.0/gtkrc
« Last Edit: May 06, 2008, 01:19:15 pm by exeterdad »

taime1

  • Member
  • *
  • Posts: 22
Re: Gtk Themes not finding their Engines.
« Reply #5 on: May 06, 2008, 01:19:31 pm »
Well,  didnt have a problem getting Clearlooks to install, but any theme that Relies on clearlooks engine, doesnt work. and the same goes for the other engine i compiled. So i have clearlooks, but not the theme which depends on it. Tried recompiling a few times.. still nothing...

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #6 on: May 06, 2008, 01:25:22 pm »
are your themes actually found?  Are they installed in /usr/share/themes/YOURNEWTHEMEFOLDER or in $HOME/.themes/YOURNEWTHEMEFOLDER  ?
Did you try running a gtk app from the console to read any complaints?

taime1

  • Member
  • *
  • Posts: 22
Re: Gtk Themes not finding their Engines.
« Reply #7 on: May 06, 2008, 01:27:17 pm »
themes are in .themes   and i did run gtk app, go the error : Unable to locate theme engine in module_path

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #8 on: May 06, 2008, 01:36:44 pm »
Yuck.  Not much help there.
Just to be clear, a couple posts back you said you didn't have /usr/lib/gtk-2.0/2.10.0/engines/.

But then later you said it installed fine.  Was you your first comment a mistake, and you do have the .la and .so files in THAT folder?

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #9 on: May 06, 2008, 01:43:12 pm »
Also forgot to mention something kinda critical. As root you need to execute: ldconfig after the "make install"  But it's never too late. :)

taime1

  • Member
  • *
  • Posts: 22
Re: Gtk Themes not finding their Engines.
« Reply #10 on: May 06, 2008, 01:44:24 pm »
i do in fact have that folder.. in fact, thats where pixpams engine is. but when i compile, it doesnt install to that folder. even if i use the prefix --prefix=/usr   or /usr/lib  or /usr/lib/gk... i tried everything

taime1

  • Member
  • *
  • Posts: 22
Re: Gtk Themes not finding their Engines.
« Reply #11 on: May 06, 2008, 01:45:39 pm »
ldconfig!!! omg.. im such an idiot.. ive been doing updatedb.  aw geez.. ill have to give it a try.. ill vnc my box at home, and ill let you know.

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #12 on: May 06, 2008, 01:49:15 pm »
lol  Hope that's the ticket.  Don't feel like an idiot, I didn't even think to mention it until just now.  Kinda out of the habit of running it since it's unnecessary when building packages.  It's ran on the users machine by the package manager when installing packages.

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #13 on: May 06, 2008, 01:52:26 pm »
i do in fact have that folder.. in fact, thats where pixpams engine is. but when i compile, it doesnt install to that folder. even if i use the prefix --prefix=/usr   or /usr/lib  or /usr/lib/gk... i tried everything

That's really odd.  Are you reusing the same sources for each build attempt?  You might want to delete the folder and extract yourself a fresh one.  It may have a cache from earlier attempts and not accepting your new --prefix. 

Just a guess.

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Gtk Themes not finding their Engines.
« Reply #14 on: May 06, 2008, 02:04:59 pm »
Oh cool!  I got 1337 posts on my last post and got my 'leet' thingie instead of my post count.  Someone owes me a beer dang it! :D