Lines Matching defs:widget

105  * @param widget a valid Xt widget
126 * @param widget a valid Xt widget
138 * @param widget a valid Xt widget
177 /** The X Toolkit widget which we use as our clipboard client. It is never made visible. */
178 Widget widget;
220 * need this because the widget clipboard callbacks do not pass user data. */
222 /** The widget we want to associate the context with */
223 Widget widget;
224 /** The context associated with the widget */
233 Widget widget = pCtx->widget;
234 AssertReturn(widget != NULL, VERR_INVALID_PARAMETER);
237 AssertReturn( (g_contexts[i].widget != widget)
239 if (g_contexts[i].widget == NULL && !found)
242 g_contexts[i].widget = widget;
255 Widget widget = pCtx->widget;
256 AssertReturnVoid(widget != NULL);
259 Assert(!found || g_contexts[i].widget != widget);
260 if (g_contexts[i].widget == widget)
263 g_contexts[i].widget = NULL;
271 static CLIPBACKEND *clipLookupContext(Widget widget)
273 AssertReturn(widget != NULL, NULL);
276 if (g_contexts[i].widget == widget)
290 return XInternAtom(XtDisplay(pCtx->widget), pszName, False);
499 static void clipConvertX11Targets(Widget widget, XtPointer pClientData,
519 char *pszName = XGetAtomName(XtDisplay(widget), pAtoms[i]);
533 Atom target = XInternAtom(XtDisplay(widget),
570 XtGetSelectionValue(pCtx->widget,
609 && (event.fixes.owner != XtWindow(pCtx->widget)))
647 if (pCtx->widget)
649 /* Valid widget + invalid appcontext = bug. But don't return yet. */
652 XtDestroyWidget(pCtx->widget);
654 pCtx->widget = NULL;
674 Assert(pCtx->widget != NULL);
756 pCtx->widget = XtVaAppCreateShell(0, "VBoxClipboard",
760 if (NULL == pCtx->widget)
772 XtSetMappedWhenManaged(pCtx->widget, false);
773 XtRealizeWidget(pCtx->widget);
776 pCtx->fixesSelectInput(pDisplay, XtWindow(pCtx->widget),
852 Assert(pCtx->widget == NULL);
1123 * @param widget a valid Xt widget
1169 rc = clipWinTxtToUtf8ForX11CB(XtDisplay(pCtx->widget),
1212 static Boolean clipXtConvertSelectionProc(Widget widget, Atom *atomSelection,
1219 CLIPBACKEND *pCtx = clipLookupContext(widget);
1261 if (XtOwnSelection(pCtx->widget, clipGetAtom(pCtx, "CLIPBOARD"),
1266 XtOwnSelection(pCtx->widget, clipGetAtom(pCtx, "PRIMARY"),
1271 XSetSelectionOwner(XtDisplay(pCtx->widget),
1273 XtWindow(pCtx->widget), CurrentTime);
1274 XSetSelectionOwner(XtDisplay(pCtx->widget),
1276 XtWindow(pCtx->widget), CurrentTime);
1583 static void cbConvertX11CB(Widget widget, XtPointer pClientData,
1605 XtGetSelectionValue(pCtx->widget, clipGetAtom(pCtx, "CLIPBOARD"),
1812 void XtSetMappedWhenManaged(Widget widget, _XtBoolean mapped_when_managed) {}
1814 void XtRealizeWidget(Widget widget) {}
1908 Boolean XtOwnSelection(Widget widget, Atom selection, Time time,
1922 void XtDisownSelection(Widget widget, Atom selection, Time time)