NAME
XtPopdown − unmap a popup shell.
SYNOPSIS
void XtPopdown(popup_shell)
Widget popup_shell;
Inputs
popup_shell
Specifies the widget shell to pop down.
DESCRIPTION
XtPopdown() pops down a popup shell and calls the functions registered on the shell’s
XtNpopdownCallback list. The "Algorithm" section below explains the details of this process.
USAGE
The Intrinsics also provide other convenience routines to pop down a popup shell. To perform a pop down from a callback list, register the function XtCallbackPopdown(). To do so from a translation table, use the action XtMenuPopdown.
Popup shell widgets can be created with XtCreatePopupShell(), and can be popped up with XtPopup() or XtPopupSpringLoaded(), or with one of the built-in callback functions (XtCallbackExclusive(), XtCallbackNonexclusive(), or XtCallbackNone()), or with the built-in action XtMenuPopup.
ALGORITHM
XtPopdown() performs the following:
•Calls XtCheckSubclass() to ensure popup_shell’s class is a subclass of shellWidgetClass.
•Checks that the popped_up field of popup_shell is True; otherwise, it returns immediately.
•Unmaps popup_shell’s window and, if override_redirect is False, sends a synthetic UnmapNotify event as specified by the Inter-Client Communications Conventions Manual.
•If popup_shell’s grab_kind is either XtGrabNonexclusive or XtGrabExclusive, it calls XtRemoveGrab().
•Sets popup_shell’s popped_up field to False.
•Calls the callback procedures on the shell’s popdown_callback list, specifying a pointer to the value of the shell’s grab_kind field as the call_data argument.
SEE ALSO
XtCallbackPopdownUNIX SYSTEM V/68, XtCreatePopupShellUNIX SYSTEM V/68, XtMenuPopdownUNIX SYSTEM V/68, XtPopupUNIX SYSTEM V/68, XtPopupSpringLoadedUNIX SYSTEM V/68, XtRemoveGrabUNIX SYSTEM V/68.