SimpleMenu.cpp
/*      Function Name: MakeSetValuesRequest
 *      Description: Makes a (possibly recursive) call to SetValues,
 *                   I take great pains to not go into an infinite loop.
 *      Arguments: w - the simple menu widget.
 *                 width, height - the size of the ask for.
 *      Returns: none
 */
Function Name: MakeSetValuesRequest
Description: Makes a (possibly recursive) call to SetValues,
I take great pains to not go into an infinite loop.
Arguments: w - the simple menu widget.
width, height - the size of the ask for.
Returns: none
Function Name : MakeSetValuesRequest Description : Makes a ( possibly recursive ) call to SetValues I take great pains to not go into an infinite loop . Arguments : w - the simple menu widget . width height - the size of the ask for . Returns : none
static void
MakeSetValuesRequest(Widget w, Dimension width, Dimension height)
{
    SimpleMenuWidget smw = (SimpleMenuWidget) w;
    Arg arglist[2];
    Cardinal num_args = (Cardinal) 0;
    if ( !smw->simple_menu.recursive_set_values ) {
	if ( (smw->core.width != width) || (smw->core.height != height) ) {
	    smw->simple_menu.recursive_set_values = TRUE;
	    XtSetArg(arglist[num_args], XtNwidth, width);   num_args++;
	    XtSetArg(arglist[num_args], XtNheight, height); num_args++;
	    XtSetValues(w, arglist, num_args);
	}
	else if (XtIsRealized( (Widget) smw))
	    Redisplay((Widget) smw, (XEvent *) NULL, (Region) NULL);
    }
    smw->simple_menu.recursive_set_values = FALSE;
}
static void MakeSetValuesRequest ( Widget w , Dimension width , Dimension height ) { SimpleMenuWidget smw = ( SimpleMenuWidget ) w ; Arg arglist [ 2 ] ; Cardinal num_args = ( Cardinal ) 0 ; if ( ! smw -> simple_menu . recursive_set_values ) { if ( ( smw -> core . width != width ) || ( smw -> core . height != height ) ) { smw -> simple_menu . recursive_set_values = TRUE ; XtSetArg ( arglist [ num_args ] , XtNwidth , width ) ; num_args ++ ; XtSetArg ( arglist [ num_args ] , XtNheight , height ) ; num_args ++ ; XtSetValues ( w , arglist , num_args ) ; } else if ( XtIsRealized ( ( Widget ) smw ) ) Redisplay ( ( Widget ) smw , ( XEvent * ) NULL , ( Region ) NULL ) ; } smw -> simple_menu . recursive_set_values = FALSE ; }
Function Name: MakeSetValuesRequest
      Description: Makes a (possibly recursive) call to SetValues,
                   I take great pains to not go into an infinite loop.
Function Name : MakeSetValuesRequest Description : Makes a ( possibly recursive ) call to SetValues I take great pains to not go into an infinite loop .