Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gv & resource file in ubuntu feisty fox



Bill Mills-Curran wrote:
> I tried that -- it still did not pick up the resource.

Appears there is a patch specifically for this issue.  Maybe a bug crept 
into the later versions of the gv source, and may not be specific to 
Ubuntu...

http://www.nabble.com/cannot-save-options-in-gv-tf3810362.html#a10786600

<snip>
diff -ru gv-3.6.2/src/info.c gv-3.6.2J/src/info.c
--- gv-3.6.2/src/info.c	2004-11-11 05:21:05.000000000 -0700
+++ gv-3.6.2J/src/info.c	2007-04-18 15:16:22.000000000 -0600
@@ -76,6 +76,7 @@
     Widget	w;
     XtPointer	client_data, call_data;
  {
+   if(gv_gs_quiet) return;
     BEGINMESSAGE(cb_popupInfoPopup)
     if (!infoPopupCreated) { makeInfoPopup(); }
     if (infoPopupVisible==True) {INFMESSAGE(InfoPopup already up) 
ENDMESSAGE(popupInfoPopup) return; }
diff -ru gv-3.6.2/src/main.c gv-3.6.2J/src/main.c
--- gv-3.6.2/src/main.c	2006-09-14 12:56:08.000000000 -0600
+++ gv-3.6.2J/src/main.c	2007-04-18 15:16:03.000000000 -0600
@@ -594,7 +594,7 @@
       XrmDatabase db;
       INFMESSAGE(getting resources)
       db = resource_buildDatabase(gv_display,gv_class,gv_name,&argc,argv);
-     XrmCombineDatabase(db,&gv_database,False);
+     XrmCombineDatabase(db,&gv_database,True);
     }

  /*### initializing widget set and creating application shell 
#########################*/
@@ -1033,8 +1033,7 @@
              XtSetArg(args[n], XtNinterpreter,gv_gs_interpreter);	n++;
              b = gv_gs_safer ? True : False;
              XtSetArg(args[n], XtNsafer,b); 
   n++;
-            b = gv_gs_quiet ? True : False;
-            XtSetArg(args[n], XtNquiet,b); 
  n++;
+            XtSetArg(args[n], XtNquiet,True); 
     n++;
              b = app_res.use_bpixmap ? True : False;
              XtSetArg(args[n], XtNuseBackingPixmap,b); 
   n++;
              XtSetArg(args[n], XtNarguments,gv_gs_arguments); 
   n++;
</snip>
-- 
Kristian Hermansen

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org