File: foo0.c

package info (click to toggle)
libsx 2.08-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 2,668 kB
  • sloc: ansic: 8,739; sh: 8,603; makefile: 62
file content (21 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void
SetWidgetSize(Widget w, int width, int height)
{
  int n = 0;
  Arg wargs[2];

  if (width > 0)
   {
     XtSetArg(wargs[0], XtNwidth, width);
     n++;
   }

  if (height > 0)
   {
     XtSetArg(wargs[0], XtNheight, height);
     n++;
   }
  
  if (n > 0 && w != NULL)
    XtSetValues(w, wargs, n);
}