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