Re: label->modify_fg() not working under KDE
- From: muppet <scott asofyet org>
- To: Travis J.I.Corcoran <tjic tjic com>
- Cc: gtk-perl-list gnome org
- Subject: Re: label->modify_fg() not working under KDE
- Date: Sun, 13 Nov 2005 10:58:16 -0500
On Nov 13, 2005, at 10:33 AM, Travis J.I. Corcoran wrote:
I've tried to read up a bit on themes and theme engines, but I'm a bit
confused. I tried playing with some code to load a .gtkrc file that I
wrote myself, but the code executed, and the UI looked the same, so
perhaps the .gtkrc *is* being overridden.
Is there a way to find out what theme is in effect?
I'm sure there's a better way, but strace will let you see precisely
what is happening, rather than guessing from what is supposed to be
happening.
$ # first, with my system gtk+
$ pkg-config --modversion --variable prefix gtk+-2.0
2.4.14
/usr
$ strace -o log gtk-demo # let it come up, then close it immediately
$ grep "rc\>" log | grep "^open"
open("/etc/gtk-2.0/gtkrc", O_RDONLY|O_LARGEFILE) = 4
open("/home/muppet/.gtkrc-2.0", O_RDONLY|O_LARGEFILE) = 4
open("/usr/share/themes/Bluecurve/gtk-2.0/gtkrc", O_RDONLY|
O_LARGEFILE) = 4
open("/usr/share/themes/Bluecurve/gtk-2.0/iconrc", O_RDONLY|
O_LARGEFILE) = 5
open("/etc/pango/pangorc", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/home/muppet/.pangorc", O_RDONLY) = -1 ENOENT (No such file or
directory)
$ # now with a more modern one, installed elsewhere
$ jhbuild shell
$ pkg-config --modversion --variable prefix gtk+-2.0
2.8.2
/home/muppet/sandboxes/gnome2
$ strace -o log gtk-demo
$ grep "rc\>" log | grep ^open
open("/home/muppet/.gtkrc-2.0", O_RDONLY|O_LARGEFILE) = 4
open("/home/muppet/sandboxes/gnome2/share/themes/Raleigh/gtk-2.0/
gtkrc", O_RDONLY|O_LARGEFILE) = 4
open("/home/muppet/sandboxes/gnome2/etc/pango/pangorc", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/home/muppet/.pangorc", O_RDONLY) = -1 ENOENT (No such file or
directory)
From this, i see that my system-wide gtk+ is using BlueCurve, but
the built-from-source version in my gnome2 sandbox is using Raleigh.
I can also see that it's searching for rc files in other places.
--
Jolt is my co-pilot.
-- Slogan on a giant paper airplane hung in Lobby 7 at MIT.
http://hacks.mit.edu/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]