Lines Matching defs:infoPtr

282     TkSelectionInfo *infoPtr;
303 for (infoPtr = dispPtr->selectionInfoPtr; infoPtr != NULL;
304 infoPtr = infoPtr->nextPtr) {
305 if (infoPtr->selection == selection) {
309 if (infoPtr == NULL) {
310 infoPtr = (TkSelectionInfo*) ckalloc(sizeof(TkSelectionInfo));
311 infoPtr->selection = selection;
312 infoPtr->nextPtr = dispPtr->selectionInfoPtr;
313 dispPtr->selectionInfoPtr = infoPtr;
314 } else if (infoPtr->clearProc != NULL) {
315 if (infoPtr->owner != tkwin) {
316 clearProc = infoPtr->clearProc;
317 clearData = infoPtr->clearData;
318 } else if (infoPtr->clearProc == LostSelection) {
325 ckfree((char *) infoPtr->clearData);
329 infoPtr->owner = tkwin;
330 infoPtr->serial = NextRequest(winPtr->display);
331 infoPtr->clearProc = proc;
332 infoPtr->clearData = clientData;
341 infoPtr->time = CurrentTime;
350 XSetSelectionOwner(winPtr->display, infoPtr->selection, winPtr->window,
351 infoPtr->time);
390 TkSelectionInfo *infoPtr;
401 for (infoPtr = dispPtr->selectionInfoPtr, prevPtr = NULL;
402 infoPtr != NULL; infoPtr = nextPtr) {
403 nextPtr = infoPtr->nextPtr;
404 if (infoPtr->selection == selection) {
412 prevPtr = infoPtr;
415 if (infoPtr != NULL) {
416 clearProc = infoPtr->clearProc;
417 clearData = infoPtr->clearData;
418 ckfree((char *) infoPtr);
487 TkSelectionInfo *infoPtr;
501 for (infoPtr = dispPtr->selectionInfoPtr; infoPtr != NULL;
502 infoPtr = infoPtr->nextPtr) {
503 if (infoPtr->selection == selection)
506 if (infoPtr != NULL) {
512 for (selPtr = ((TkWindow *) infoPtr->owner)->selHandlerList;
522 count = TkSelDefaultSelection(infoPtr, target, buffer,
842 TkSelectionInfo *infoPtr;
851 for (infoPtr = winPtr->dispPtr->selectionInfoPtr; infoPtr != NULL;
852 infoPtr = infoPtr->nextPtr) {
853 if (infoPtr->selection == selection)
861 if ((infoPtr != NULL)
862 && (infoPtr->owner != winPtr->dispPtr->clipWindow)) {
863 interp->result = Tk_PathName(infoPtr->owner);
918 TkSelectionInfo *infoPtr, *prevPtr, *nextPtr;
944 for (infoPtr = winPtr->dispPtr->selectionInfoPtr, prevPtr = NULL;
945 infoPtr != NULL; infoPtr = nextPtr) {
946 nextPtr = infoPtr->nextPtr;
947 if (infoPtr->owner == (Tk_Window) winPtr) {
948 if (infoPtr->clearProc == LostSelection) {
949 ckfree((char *) infoPtr->clearData);
951 ckfree((char *) infoPtr);
952 infoPtr = prevPtr;
959 prevPtr = infoPtr;
1027 TkSelectionInfo *infoPtr;
1039 for (infoPtr = dispPtr->selectionInfoPtr, prevPtr = NULL;
1040 infoPtr != NULL; infoPtr = infoPtr->nextPtr) {
1041 if (infoPtr->selection == eventPtr->xselectionclear.selection) {
1044 prevPtr = infoPtr;
1047 if (infoPtr != NULL && (infoPtr->owner == tkwin)
1048 && (eventPtr->xselectionclear.serial >= infoPtr->serial)) {
1050 dispPtr->selectionInfoPtr = infoPtr->nextPtr;
1052 prevPtr->nextPtr = infoPtr->nextPtr;
1057 * after the infoPtr has been removed from the selectionInfoPtr
1062 if (infoPtr->clearProc != NULL) {
1063 (*infoPtr->clearProc)(infoPtr->clearData);
1065 ckfree((char *) infoPtr);
1216 TkSelDefaultSelection(infoPtr, target, buffer, maxBytes, typePtr)
1217 TkSelectionInfo *infoPtr; /* Info about selection being retrieved. */
1224 register TkWindow *winPtr = (TkWindow *) infoPtr->owner;
1231 sprintf(buffer, "0x%x", (unsigned int) infoPtr->time);
1248 if ((selPtr->selection == infoPtr->selection)