comparison src/widget.c @ 6465:0bd909cf75c3

Call XtSetValues not XtVaSetValues.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Tue, 22 Mar 1994 14:59:24 +0000
parents 7f93299356e2
children c0a3d01237ed
comparison
equal deleted inserted replaced
6464:7f93299356e2 6465:0bd909cf75c3
436 /* Compute the geometry of the toplevel shell because on some platforms 436 /* Compute the geometry of the toplevel shell because on some platforms
437 when the geometry is not set, the widget children are resized. */ 437 when the geometry is not set, the widget children are resized. */
438 { 438 {
439 int len; 439 int len;
440 char *tem; 440 char *tem;
441 Arg al[2];
442 int ac = 0;
443
441 sprintf (shell_position, "=%dx%d", pixel_width, pixel_height); 444 sprintf (shell_position, "=%dx%d", pixel_width, pixel_height);
442 len = strlen (shell_position) + 1; 445 len = strlen (shell_position) + 1;
443 tem = (char *) xmalloc (len); 446 tem = (char *) xmalloc (len);
444 strncpy (tem, shell_position, len); 447 strncpy (tem, shell_position, len);
445 XtVaSetValues (wmshell, XtNgeometry, tem, 0); 448 XtSetArg (al[ac], XtNgeometry, tem); ac++;
449 XtSetValues (wmshell, al, ac);
446 } 450 }
447 451
448 #if 0 /* We don't need this also. */ 452 #if 0 /* We don't need this also. */
449 /* If a position was specified, assign it to the shell widget. 453 /* If a position was specified, assign it to the shell widget.
450 (Else WM won't do anything with it.) 454 (Else WM won't do anything with it.)