Lines Matching defs:popup
1 /* $XConsortium: popup.c,v 2.38 94/08/26 18:04:22 swick Exp $
28 /* popup.c -- Handle pop-up widgets. */
36 Widget popup; /* order of fields same as CommandStatusRec */
93 Widget popup,
97 /* Hack. Fix up the position of the popup. The xmh app defaults file
100 * popups, are mitigated here, by giving the popup shell a position.
112 XtGetValues( popup, args, ONE );
120 XtSetValues( popup, args, FOUR);
129 Widget popup,
140 XtGetValues(popup, args, TWO);
145 nx = (GetWidth(widget) - GetWidth(popup)) / 2;
146 ny = (GetHeight(widget) - GetHeight(popup)) / 2;
153 XtSetValues(popup, args, THREE);
158 /* Insure that the popup is wholly showing on the screen.
164 Widget popup,
179 XtGetValues( popup, args, THREE );
198 XtSetValues( popup, args, TWO );
209 Widget popup = (Widget) client_data;
210 XtPopdown(popup);
211 XtDestroyWidget(popup);
215 Widget popup, /* transient shell */
222 shellName = XtName(popup);
234 button = XtNameToWidget(popup, buttonName);
242 Widget popup) /* shell */
244 XtInstallAllAccelerators(popup, popup);
245 XtAugmentTranslations(popup, app_resources.wm_protocols_translations);
246 XtRealizeWidget(popup);
247 XDefineCursor(XtDisplay(popup), XtWindow(popup), app_resources.cursor);
248 (void) XSetWMProtocols(XtDisplay(popup), XtWindow(popup),
270 Widget popup;
282 popup = XtCreatePopupShell(XmhNprompt, transientShellWidgetClass, toplevel,
284 positioned = PositionThePopup(popup, x, y);
288 dialog = XtCreateManagedWidget(XmhNdialog, dialogWidgetClass, popup, args,
302 XawDialogAddButton(dialog, "cancel", DestroyPopup, (XtPointer) popup);
303 TheUsual(popup);
304 InsureVisibility(popup, dialog, x, y, !positioned, False);
305 XtPopup(popup, XtGrabNone);
315 PopupStatus popup = (PopupStatus)closure;
316 XtPopdown(popup->popup);
317 XtDestroyWidget(popup->popup);
318 if (popup->shell_command)
319 XtFree(popup->shell_command);
364 popup_status->popup = XtCreatePopupShell(XmhNnotice,
366 PositionThePopup(popup_status->popup, x, y);
371 popup_status->popup, args, TWO);
386 TheUsual(popup_status->popup);
387 InsureVisibility(popup_status->popup, dialog, x, y, False, False);
388 XtPopup(popup_status->popup, XtGrabNone);
398 Widget popup;
413 popup = XtCreatePopupShell(XmhNconfirm, transientShellWidgetClass,
415 PositionThePopup(popup, x, y);
418 dialog = XtCreateManagedWidget(XmhNdialog, dialogWidgetClass, popup, args,
421 callbacks[0].closure = (XtPointer) popup;
430 XtAddCallback(button, XtNcallback, DestroyPopup, (XtPointer) popup);
434 TheUsual(popup);
436 popup, x, y);
437 InsureVisibility(popup, dialog, x, y, False, False);
438 XtPopup(popup, XtGrabNone);