diff options
Diffstat (limited to 'src/Form.c')
-rw-r--r-- | src/Form.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -301,13 +301,12 @@ WidgetClass formWidgetClass = (WidgetClass)&formClassRec; static void XawFormRealize(Widget w, Mask *mask, XSetWindowAttributes *attr) { - XawPixmap *pixmap; - (*formWidgetClass->core_class.superclass->core_class.realize)(w, mask, attr); if (w->core.background_pixmap > XtUnspecifiedPixmap) { - pixmap = XawPixmapFromXPixmap(w->core.background_pixmap, XtScreen(w), - w->core.colormap, (int)w->core.depth); + XawPixmap *pixmap = + XawPixmapFromXPixmap(w->core.background_pixmap, XtScreen(w), + w->core.colormap, (int)w->core.depth); if (pixmap && pixmap->mask) XawReshapeWidget(w, pixmap); } @@ -1022,10 +1021,8 @@ static void XawFormChangeManaged(Widget w) { FormWidget fw = (FormWidget)w; - FormConstraints form; WidgetList children, childP; int num_children = (int)fw->composite.num_children; - Widget child; (*((FormWidgetClass)w->core.widget_class)->form_class.layout) (fw, XtWidth(w), XtHeight(w), True); @@ -1035,7 +1032,8 @@ XawFormChangeManaged(Widget w) for (children = childP = fw->composite.children; childP - children < num_children; childP++) { - child = *childP; + FormConstraints form; + Widget child = *childP; if (!XtIsManaged(child)) continue; form = (FormConstraints)child->core.constraints; |