XtMenuPopdown(Xt) X Version 11 (Release 5) 6 January 1993 XtMenuPopdown(Xt) Name XtPopdown, XtCallbackPopdown, XtMenuPopdown - unmap a pop-up Syntax void XtPopdown(popup_shell) Widget popup_shell; void XtCallbackPopdown(w, client_data, call_data) Widget w; XtPointer client_data; XtPointer call_data; void XtMenuPopdown(shell_name) String shell_name; Arguments calldata Specifies the callback data, which is not used by this pro- cedure. clientdata Specifies a pointer to the XtPopdownID structure. popupshell Specifies the widget shell to pop down. shellname Specifies the name of the widget shell to pop down. w Specifies the widget. Description The XtPopdown function performs the following: + Calls XtCheckSubclass to ensure popupshell is a subclass of Shell. + Checks that popupshell is currently popped_up; otherwise, it gen- erates an error. + Unmaps popupshell's window. + If popupshell's grab_kind is either XtGrabNonexclusive or XtGrab- Exclusive, it calls XtRemoveGrab. + Sets popupshell's popped_up field to False. + Calls the callback procedures on the shell's popdown_callback list. The XtCallbackPopdown function casts the client data parameter to an XtPopdownID pointer: typedef struct { Widget shell_widget; Widget enable_widget; } XtPopdownIDRec, *XtPopdownID; The shellwidget is the pop-up shell to pop down, and the enablewidget is the widget that was used to pop it up. XtCallbackPopdown calls XtPopdown with the specified shellwidget and then calls XtSetSensitive to resensitize the enablewidget. If a shell name is not given, XtMenuPopdown calls XtPopdown with the widget for which the translation is specified. If a shellname is speci- fied in the translation table, XtMenuPopdown tries to find the shell by looking up the widget tree starting at the parent of the widget in which it is invoked. If it finds a shell with the specified name in the pop-up children of that parent, it pops down the shell; otherwise, it moves up the parent chain as needed. If XtMenuPopdown gets to the application top-level shell widget and cannot find a matching shell, it generates an error. See also XtCreatePopupShell(Xt) and XtPopup(Xt). X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface