Package: gv
Version: 1:3.6.1-10
Followup-For: Bug #148533

Gv first reads the current resources, then overwrites them with the
default values.

As easy test, try:
cat > scales <<EOF
GV.scales: Natural size,   1.200,  screen  \n\
        Pixel based,    1.200,  pixel   \n\
        0.950,          0.950
EOF
xrdb -merge scales
and fire up gv to see it still shows the default menu.

The bug is only a signle True where a False belongs and fixed with the
following patch:

diff -r -u gv-3.6.1/src/main.c gv-patched/src/main.c
--- gv-3.6.1/src/main.c 2004-12-07 00:36:57.000000000 +0100
+++ gv-patched/src/main.c       2006-07-22 14:46:52.450968089 +0200
@@ -607,7 +607,7 @@
      XrmDatabase db;
      INFMESSAGE(getting resources)
      db = resource_buildDatabase(gv_display,gv_class,gv_name,&argc,argv);
-     XrmCombineDatabase(db,&gv_database,True);
+     XrmCombineDatabase(db,&gv_database,False);
    }
 
 /*### initializing widget set and creating application shell 
#########################*/

At this place gv_display are the current resources, while db consists
out of the default resource values. If overwrite is true, the default
ones overwrite the current ones in gv_databases, discarding anything the
user set via xrdb or in his .Xresources...

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages gv depends on:
ii  gs                 8.01-5                Transitional package
ii  gs-esp [gs]        7.07.1-9              The Ghostscript PostScript interpr
ii  gs-gpl [gs]        8.01-5                The GPL Ghostscript PostScript int
ii  libc6              2.3.2.ds1-22sarge3    GNU C Library: Shared libraries an
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxext6           4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  libxmu6            4.3.0.dfsg.1-14sarge1 X Window System miscellaneous util
ii  libxpm4            4.3.0.dfsg.1-14sarge1 X pixmap library
ii  libxt6             4.3.0.dfsg.1-14sarge1 X Toolkit Intrinsics
ii  xaw3dg             1.5+E-8               Xaw3d widget set
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu

-- no debconf information
Hochachtungsvoll,
        Bernhard R. Link
-- 
mozilla-thunderbird: It cannot read mail, it cannot send mail. It is the
victory of dialup over the internet.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to