Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > b8240933842cee58f4e7ce03017867c5 > files > 74

libsx-devel-2.05-18.fc12.i686.rpm

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);
}