Function: pgtk-dnd-default-test-function

pgtk-dnd-default-test-function is a byte-compiled function defined in pgtk-dnd.el.gz.

Signature

(pgtk-dnd-default-test-function WINDOW ACTION TYPES)

Documentation

The default test function for drag and drop.

WINDOW is where the mouse is when this function is called. It may be a frame if the mouse is over the menu bar, scroll bar or tool bar. ACTION is the suggested action from the source, and TYPES are the types the drop data can have. This function only accepts drops with types in pgtk-dnd-known-types. It always returns the action copy.

Source Code

;; Defined in /usr/src/emacs/lisp/pgtk-dnd.el.gz
(defun pgtk-dnd-default-test-function (_window _action types)
  "The default test function for drag and drop.
WINDOW is where the mouse is when this function is called.  It may be
a frame if the mouse is over the menu bar, scroll bar or tool bar.
ACTION is the suggested action from the source, and TYPES are the
types the drop data can have.  This function only accepts drops with
types in `pgtk-dnd-known-types'.  It always returns the action `copy'."
  (let ((type (pgtk-dnd-choose-type types)))
    (when type (cons 'copy type))))