LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 04-30-2003, 02:59 PM   #1
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
set GTK theme w/out Gnome


ok, here's a question. I have the GTK libraries (and some of the necessary gnome libraries) but I did not install the Gnome WM. However when I run apps such as Gaim, Grip, and others that utilize Gnome / GTK themes they of course use the very boring very unattractive default theme. I understand that normally to install a new theme I would use the control panel under gnome. I don't use Gnome, I'll never use gnome. I'm an enlightened guy... so I don't want to have to install Gnome. How do I go about installing a gnome theme to alter the look of the GTK widgets w/out installing gnome?

thanks in advance,
jbarto
 
Old 04-30-2003, 05:58 PM   #2
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
Gtk system wide themes should be in /usr/share/themes, if you followed the book ...and iirc . If you compiled and installed to default location, check /usr/local/share.
Here's how I do it,
Code:
>ls -l /usr/share/themes/Default/
drwxr-xr-x    3 1000     1000           96 Mar  2 07:07 Black-Marble
drwxr-xr-x    3 1002     1002           72 Apr 26 19:42 Darkjungle
drwxr-xr-x    4 root     root          152 Feb 16 06:19 PrettyBlueish
drwxr-xr-x    3 1000     1000           96 Oct 16  2002 fishpie
lrwxrwxrwx    1 root     root           14 Apr 30 18:27 gtk -> Darkjungle/gtk
lrwxrwxrwx    1 root     root           15 Apr 30 18:37 gtk-2.0 -> fishpie/gtk-2.0
drwxr-xr-x    2 root     root           72 Mar 27 09:06 gtk-2.0-key
drwxr-xr-x    4 root     root           96 Apr 26 19:15 oem
...oem is where I've backed up the default theme, the rest is themes I downloaded and I use symlinks.

But be carefull, some apps will have their own gtkrc files in their dot dir. in the user accounts, I just link the to the gtkrc directly in those cases
Code:
>ls -l ~/.gimp-1.2/gtkrc*
lrwxrwxrwx    1 root     root           54 Apr 30 18:35 /root/.gimp-1.2/gtkrc -> ../../usr/share/themes/Default/PrettyBlueish/gtk/gtkrc
-rw-r--r--    1 root     root          198 Mar 26 14:49 /root/.gimp-1.2/gtkrc.oem
HTH
 
Old 04-30-2003, 11:32 PM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Original Poster
Rep: Reputation: 45
ok... gave it a shot... ran gimp and it appears to be trying to load the new theme... but I get all kinds of gtk-errors stating that it can't find png images. Note that I installed the gnome libs / software sparingly... only what I had to install and I could have very well missed one. For example after downloading a theme and setting the symlinks I was getting an error about not finding libpixmap so I had to install the gtk-engine libraries. Any suggestions for the cause of this new error?

ERROR:
Gtk-WARNING **: Unable to locate image file in pixmap_path: 'button5.pn' line 1152
 
Old 05-01-2003, 07:28 PM   #4
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
Dunno if you could be missing some libs but I get that warning for gftp but the gtk2 style loads fine.

There might be a better way to do this, I was just messing with this over the week-end. I did this on a pretty much b@st@rdized Crux but I got no KDE nor gnome onto it.

Also, you may have noticed, but my symlink for gimp points to a gtk[1] theme...
 
Old 05-01-2003, 10:22 PM   #5
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Original Poster
Rep: Reputation: 45
got if figured out... had to add a pixmap_path to gimp's gtkrc.

is there a universal gtkrc somewhere that all gtkrc's will inherit a pixmap_path from? I'd hate to have to edit the gtkrc of every GTK-1.2 proggie on my machine. Course this could also be a symptom of installing the Gnome 2.0 libraries and none of the Gnome 1.4 libs...

thanks everyone for all your help,
jpbarto
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set a Gnome theme as default for all users and future users ? MDesigner Linux - Newbie 1 06-28-2004 11:12 AM
gentoo + theme GTK+ m4r1u5z Linux - General 4 06-06-2004 01:53 AM
GTK theme change w/o gnome help bpk Linux - Software 1 03-26-2004 04:24 PM
Problem getting installed GNOME theme to show in theme list on RedHat 9.0 linux-fan64 Linux - Newbie 1 02-25-2004 05:16 PM
GTK theme font ubien Linux - General 0 01-01-2003 03:38 PM


All times are GMT -5. The time now is 04:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration