dtstyle: XVaGetValues() calls
authorMarcin Cieslak <saper@saper.info>
Wed, 26 Sep 2012 10:14:52 +0000 (12:14 +0200)
committerJon Trulson <jon@radscan.com>
Thu, 27 Sep 2012 01:42:57 +0000 (19:42 -0600)
cde/programs/dtstyle/Font.c
cde/programs/dtstyle/I18nMain.c
cde/programs/dtstyle/Screen.c

index 777d41bea2d8e119e3d3bc94533b6f23b2a733fc..0d6ba0c0188c990495fd3eb8e815f8a6dd1ae2cb 100644 (file)
@@ -452,7 +452,8 @@ ButtonCB(
 {
   DtDialogBoxCallbackStruct *cb     
            = (DtDialogBoxCallbackStruct *) call_data;
-  int      n, len, items;
+  int      n, len;
+  XtArgVal items;
   char    *str, *fntstr, *fntsetstr;
   Arg      args[MAX_ARGS];
   char     fontres[8192];
index cea3c9f6bad831eb24543c55fc1bb448c024e719..315f2c5ebef6bfa35cf7d29bb3c7ef18881ea048 100644 (file)
@@ -825,7 +825,8 @@ UpdateImList(
     I18nEnv *env,
     char *hostname)
 {
-    Cardinal n,i;
+    Cardinal i;
+    XtArgVal n;
     Widget *im_tog = NULL;
     int ret = NoError;
 
@@ -992,7 +993,8 @@ SaveSelectedValues(
 {
     int ret = NoError;
     char *preeditStr = NULL, *tmpStr;
-    int i, num_preedit = 0;
+    int i;
+    XtArgVal num_preedit = 0;
     XmStringTable list_preedit;
     static char preeditTypeRes[1024];
 
@@ -1068,7 +1070,8 @@ SetFileSelValues(
 )
 {
     char *hostname;
-    Cardinal n,i;
+    Cardinal i;
+    XtArgVal n;
     Widget *im_tog;
 
     /* The hostname value is stored in the ImsSel structure. */
index 00a5e00a350474a28a5719f3c0f035bc27da7562..248a65b7b51d00976709b3a55a923de161b2dbed 100644 (file)
@@ -507,6 +507,7 @@ build_screenDialog(
     Dimension        LabelWidth = 0;
     Atom             delete_window_atom;
     Boolean          low_res = False;
+    XtArgVal         scratch;
 
     /* initialize saver data */
     savers.shadow = 2;
@@ -820,7 +821,8 @@ build_screenDialog(
       XtSetArg (args[n], XmNwidth, SAVER_WIDTH); n++; }
     screen.saverArea = XmCreateDrawingArea (screen.saverAreaFrame, "saverArea", args, n);
     /* get the initial secondary color pixel value for dtstyle for later use */
-    XtVaGetValues(screen.saverArea, XmNbackground, &savers.bg, NULL);
+    XtVaGetValues(screen.saverArea, XmNbackground, &scratch, NULL);
+    savers.bg = (Pixel)scratch;
 
     /* label for the previewed saver  */
     n = 0;
@@ -2396,6 +2398,7 @@ ButtonCB(
   Boolean             flag;
   static char         screenres[48];
   int                 mintime;
+  XtArgVal            scratch;
   
   DtDialogBoxCallbackStruct *cb = (DtDialogBoxCallbackStruct *) call_data;
   
@@ -2482,7 +2485,8 @@ ButtonCB(
       free_saverList(savers.selsaverActionNames, savers.selsaverCount); 
       savers.selsaverActionNames = NULL;
 
-      XtVaGetValues(screen.cycleTimeScale, XmNvalue, &screen.cycleTimeout, NULL);
+      XtVaGetValues(screen.cycleTimeScale, XmNvalue, &scratch, NULL);
+      screen.cycleTimeout = scratch;
       
       /* send new saver time, lock time and time per saver to SM if they have changed, */
       /* flag value indicates which value has changed */
@@ -2610,6 +2614,7 @@ no_svr_ext_ButtonCB(
   Boolean             flag;
   static char         screenres[48];
   int                 mintime;
+  XtArgVal            scratch;
   
   DtDialogBoxCallbackStruct *cb = (DtDialogBoxCallbackStruct *) call_data;
   
@@ -2686,7 +2691,8 @@ no_svr_ext_ButtonCB(
       free_saverList(savers.selsaverActionNames, savers.selsaverCount); 
       savers.selsaverActionNames = NULL;
 
-      XtVaGetValues(screen.cycleTimeScale, XmNvalue, &screen.cycleTimeout, NULL);
+      XtVaGetValues(screen.cycleTimeScale, XmNvalue, &scratch, NULL);
+      screen.cycleTimeout = scratch;
       
       /* send new saver time, lock time and time per saver to SM if they have changed, */
       /* flag value indicates which value has changed */