Lines Matching defs:selection
19 * When handling INCR-style selection retrievals, the selection owner
25 TkWindow *winPtr; /* Window that owns selection. */
26 Atom selection; /* Selection that is being retrieved. */
49 * anything from the selection
53 * selection at beginning of request;
54 * used to abort transfer if selection
66 * selection:
97 * Retrieve the specified selection from another process.
101 * If an error occurs (such as no selection exists)
111 TkSelGetSelection(interp, tkwin, selection, target, proc, clientData)
115 * the selection (determines display
117 Atom selection; /* Selection to retrieve. */
118 Atom target; /* Desired form in which selection
121 * selection, once it has been retrieved. */
129 * The selection is owned by some other process. To
144 retr.selection = selection;
145 retr.property = selection;
155 * Initiate the request for the selection. Note: can't use
158 * in the past and could even predate the time when the selection was
162 XConvertSelection(winPtr->display, retr.selection, retr.target,
166 * Enter a loop processing X events until the selection
179 * Unregister the information about the selection retrieval
207 * is to implement the sending side of the INCR selection
208 * retrieval protocol when the selection requestor deletes
209 * the property containing a part of the selection.
215 * If the property that is receiving the selection was just
216 * deleted, then a new piece of the selection is fetched and
218 * selection to fetch.
266 && (selPtr->selection == incrPtr->selection)) {
282 * The selection handler deleted itself.
288 panic("selection handler returned too many bytes");
340 * This procedure is invoked whenever a selection-related
342 * in implementing the selection protocol.
375 * to handle the incoming selection.
390 && (retrPtr->selection == eventPtr->xselection.selection)
399 Tk_GetAtomName(tkwin, retrPtr->selection),
400 " selection doesn't exist or form \"",
419 Tcl_SetResult(retrPtr->interp, "selection property too large",
429 "bad format for string selection: wanted \"8\", got \"%d\"",
443 * the selection in pieces, using the ICCCM protocol, then
444 * hang around until either the selection is all here or a
463 "bad format for selection: wanted \"32\", got \"%d\"",
499 * the selection to be returned. After a while it gives up and
500 * aborts the selection retrieval.
535 * selection return.
538 Tcl_SetResult(retrPtr->interp, "selection owner didn't respond",
560 * Properties are created for the selection requestor, and a
561 * SelectionNotify event is generated for the selection
572 * selection's current owner, be we
578 * selection info is ready. */
581 IncrInfo incr; /* State of selection conversion. */
601 reply.selection = eventPtr->selection;
611 if (infoPtr->selection == eventPtr->selection)
626 incr.selection = eventPtr->selection;
660 * the entire converted selection, if it can be returned in a single
661 * bunch, or return INCR information only (the actual selection will
682 && (selPtr->selection == eventPtr->selection)) {
713 panic("selection handler returned too many bytes");
719 * Got the selection; store it back on the requestor's property.
849 * chunk of the selection arrived).
855 * If a new piece of selection has arrived, a procedure is
856 * invoked to deal with that piece. When the whole selection
858 * initiated the selection retrieval.
889 Tcl_SetResult(retrPtr->interp, "selection property too large",
902 "bad format for string selection: wanted \"8\", got \"%d\"",
920 "bad format for selection: wanted \"32\", got \"%d\"",
948 * This procedure is called when the selection is too large to
950 * the selection in bytes.
953 * The return value is the number of bytes in the selection
957 * The selection is retrieved from its current owner (this is
966 * the selection whose size is wanted. */
996 * selection to a requestor in INCR mode. After a while it
997 * gives up and aborts the selection operation.
1013 * selection retrieval for which
1014 * we are selection owner. */
1033 * Given a selection represented as a string (the normal Tcl form),
1052 char *string; /* String representation of selection. */
1054 * desired for the selection. Should not