SimpleMenu.cpp
/* 
 * If the user actually passed a width and height to the widget
 * then this MUST be used, rather than our newly calculated width and
 * height.
 */
If the user actually passed a width and height to the widget
then this MUST be used, rather than our newly calculated width and
height.
If the user actually passed a width and height to the widget then this MUST be used rather than our newly calculated width and height .
static Boolean
SetValuesHook(Widget w, ArgList arglist, Cardinal *num_args)
{
    Cardinal i;
    Dimension width, height;
    width = w->core.width;
    height = w->core.height;
    for ( i = 0 ; i < *num_args ; i++) {
	if ( streq(arglist[i].name, XtNwidth) )
	    width = (Dimension) arglist[i].value;
	if ( streq(arglist[i].name, XtNheight) )
	    height = (Dimension) arglist[i].value;
    }
    if ((width != w->core.width) || (height != w->core.height))
	MakeSetValuesRequest(w, width, height);
    return(FALSE);
}
static Boolean SetValuesHook ( Widget w , ArgList arglist , Cardinal * num_args ) { Cardinal i ; Dimension width , height ; width = w -> core . width ; height = w -> core . height ; for ( i = 0 ; i < * num_args ; i ++ ) { if ( streq ( arglist [ i ] . name , XtNwidth ) ) width = ( Dimension ) arglist [ i ] . value ; if ( streq ( arglist [ i ] . name , XtNheight ) ) height = ( Dimension ) arglist [ i ] . value ; } if ( ( width != w -> core . width ) || ( height != w -> core . height ) ) MakeSetValuesRequest ( w , width , height ) ; return ( FALSE ) ; }
If the user actually passed a width and height to the widget
 then this MUST be used, rather than our newly calculated width and
 height.
If the user actually passed a width and height to the widget then this MUST be used rather than our newly calculated width and height .