XGetDefault problem
Tgif isn't handling .Xresources/.Xdefaults properly - it ignores them.
In .Xdefaults and .Xresources (yes I "xrdb -merge .Xresources") I have:
Tgif.BorderColor: Yellow
In /usr/X11R6/lib/X11/app-defaults/Tgif there is:
Tgif.BorderColor: Aquamarine
To try and debug the problem, I have added some debugging output to tgif,
the following code (in the initialisation of tgif) outputs sensible values,
*c_ptr="Aquamarine" :-(
c_ptr=XGetDefault(mainDisplay, "Tgif", "BorderColor");
printf("c_ptr=\"%d\"\n",(int)c_ptr);
printf("*c_ptr=\"%s\"\n",c_ptr);
printf("mainDisplay=\"%d\"\n",(int)mainDisplay);
printf("display=\"%s\"\n",mainDisplay->display_name);
However "xrdb -query|grep -i tgif" produces:
Tgif.NoTgifIcon: true
Tgif.BorderColor: Yellow
A "strings libX11.so.6|grep XGetDefault" does indeed show that the function
is there.
Does this look like a tgif problem or an xwindows problem? I don't know
whether XGetDefault is supposed to return the values in app-defaults
overridden by those in "xrdb", I'll try and look at work tomorrow.
The author (Bill Cheung <william@cs.umd.edu>) has this to say:
> I don't know if this is related to the fact that tgif is based on Xlib
> and not Xtoolkit. Whenever I made changes to my X resource file, I
> always restart xrdb and that seems to work.
On a (possibly related) note, fvwm2's "Identify" function says that tgif's
class is "NoClass". Bill sent me this patch for it, but it doesn't seem to
make any difference.
+ classhints.res_name = "Tgif";
+ classhints.res_class = "Tgif";
+ XSetWMProperties(mainDisplay, mainWindow, NULL, NULL, NULL, 0,
+ NULL, NULL, &classhints);
Thanks in advance
Adrian
email: adrian.bridgett@poboxes.com | Debian Linux - www.debian.org
http://www.poboxes.com/adrian.bridgett | Because bloated, unstable
PGP key available on public key servers | operating systems are from MS
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: