diff src/scrollbar-x.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 3d6bfa290dbd
line wrap: on
line diff
--- a/src/scrollbar-x.c	Mon Aug 13 09:43:39 2007 +0200
+++ b/src/scrollbar-x.c	Mon Aug 13 09:44:42 2007 +0200
@@ -187,9 +187,10 @@
 update_one_scrollbar_bs (struct frame *f, Widget sb_widget)
 {
   Boolean use_backing_store;
+  Arg al [1];
 
-  XtVaGetValues (FRAME_X_TEXT_WIDGET (f),
-		 XtNuseBackingStore, &use_backing_store, NULL);
+  XtSetArg (al [0], XtNuseBackingStore, &use_backing_store);
+  XtGetValues (FRAME_X_TEXT_WIDGET (f), al, 1);
 
   if (use_backing_store && sb_widget)
     {
@@ -308,8 +309,11 @@
   /* mirror the value in the frame resources, unless it was already
      done. */
   if (!in_resource_setting)
-    XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarWidth,
-		   XINT (newval), NULL);
+    {
+      Arg al [1];
+      XtSetArg (al [0], XtNscrollBarWidth, XINT (newval));
+      XtSetValues (FRAME_X_TEXT_WIDGET (f), al, 1);
+    }
 
   if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f)))
     {
@@ -350,8 +354,11 @@
        did, we wouldn't want to overwrite the resource information
        (which might specify a user preference). */
   if (!in_resource_setting)
-    XtVaSetValues (FRAME_X_TEXT_WIDGET (f), XtNscrollBarHeight,
-		   XINT (newval), NULL);
+    {
+      Arg al [1];
+      XtSetArg (al [0], XtNscrollBarHeight, XINT (newval));
+      XtSetValues (FRAME_X_TEXT_WIDGET (f), al, 1);
+    }
 
   if (XtIsRealized (FRAME_X_CONTAINER_WIDGET (f)))
     {