1XtPopdown(3) XT FUNCTIONS XtPopdown(3)
2
3
4
6 XtPopdown, XtCallbackPopdown - unmap a pop-up
7
9 #include <X11/Intrinsic.h>
10
11 void XtPopdown(Widget popup_shell);
12
13 void XtCallbackPopdown(Widget w, XtPointer client_data, XtPointer
14 call_data);
15
17 void XtMenuPopdown(String shell_name);
18
20 call_data Specifies the callback data, which is not used by this proce‐
21 dure.
22
23 client_data
24 Specifies a pointer to the XtPopdownID structure.
25
26 popup_shell
27 Specifies the widget shell to pop down.
28
29 shell_name
30 Specifies the name of the widget shell to pop down.
31
32 w Specifies the widget.
33
35 The XtPopdown function performs the following:
36
37 · Calls XtCheckSubclass to ensure popup_shell is a subclass of
38 Shell.
39
40 · Checks that popup_shell is currently popped_up; otherwise, it gen‐
41 erates an error.
42
43 · Unmaps popup_shell's window.
44
45 · If popup_shell's grab_kind is either XtGrabNonexclusive or
46 XtGrabExclusive, it calls XtRemoveGrab.
47
48 · Sets pop-up shell's popped_up field to False.
49
50 · Calls the callback procedures on the shell's popdown_callback
51 list.
52
53 The XtCallbackPopdown function casts the client data parameter to an
54 XtPopdownID pointer:
55
56 typedef struct {
57 Widget shell_widget;
58 Widget enable_widget;
59 } XtPopdownIDRec, *XtPopdownID;
60
61 The shell_widget is the pop-up shell to pop down, and the enable_widget
62 is the widget that was used to pop it up.
63
64 XtCallbackPopdown calls XtPopdown with the specified shell_widget and
65 then calls XtSetSensitive to resensitize the enable_widget.
66
67 If a shell name is not given, XtMenuPopdown calls XtPopdown with the
68 widget for which the translation is specified. If a shell_name is
69 specified in the translation table, XtMenuPopdown tries to find the
70 shell by looking up the widget tree starting at the parent of the wid‐
71 get in which it is invoked. If it finds a shell with the specified
72 name in the pop-up children of that parent, it pops down the shell;
73 otherwise, it moves up the parent chain as needed. If XtMenuPopdown
74 gets to the application top-level shell widget and cannot find a match‐
75 ing shell, it generates an error.
76
78 XtCreatePopupShell(3), XtPopup(3)
79 X Toolkit Intrinsics - C Language Interface
80 Xlib - C Language X Interface
81
82
83
84X Version 11 libXt 1.1.5.1 XtPopdown(3)