diff lwlib/lwlib.c @ 165:5a88923fcbfe r20-3b9

Import from CVS: tag r20-3b9
author cvs
date Mon, 13 Aug 2007 09:44:42 +0200
parents 0132846995bd
children 2d532a89d707
line wrap: on
line diff
--- a/lwlib/lwlib.c	Mon Aug 13 09:43:39 2007 +0200
+++ b/lwlib/lwlib.c	Mon Aug 13 09:44:42 2007 +0200
@@ -1253,17 +1253,18 @@
   Pixel foreground = 0;
   Pixel background = 1;
   Widget widget_to_invert = XtNameToWidget (w, "*sheet");
+  Arg al [2];
+  
   if (!widget_to_invert)
     widget_to_invert = w;
-  
-  XtVaGetValues (widget_to_invert,
-		 XtNforeground, &foreground,
-		 XtNbackground, &background,
-		 NULL);
-  XtVaSetValues (widget_to_invert,
-		 XtNforeground, background,
-		 XtNbackground, foreground,
-		 NULL);
+
+  XtSetArg (al [0], XtNforeground, &foreground);
+  XtSetArg (al [1], XtNbackground, &background);
+  XtGetValues (widget_to_invert, al, 2);
+
+  XtSetArg (al [0], XtNforeground, background);
+  XtSetArg (al [1], XtNbackground, foreground);
+  XtSetValues (widget_to_invert, al, 2);
 }
 
 void