From aa360da10dc1130e40bb82225ee8988a2465f38a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 12 Jun 2008 03:56:20 +0000 Subject: Add some compiler declarations, for builds without X. --- lisp/x-dnd.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lisp/x-dnd.el') diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el index 3b069a86f17..2cee5710b49 100644 --- a/lisp/x-dnd.el +++ b/lisp/x-dnd.el @@ -356,6 +356,9 @@ Currently XDND, Motif and old KDE 1.x protocols are recognized." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Old KDE protocol. Only dropping of files. +(declare-function x-window-property "xfns.c" + (prop &optional frame type source delete-p vector-ret-p)) + (defun x-dnd-handle-old-kde (event frame window message format data) "Open the files in a KDE 1.x drop." (let ((values (x-window-property "DndSelection" frame nil 0 t))) @@ -376,6 +379,9 @@ Currently XDND, Motif and old KDE 1.x protocols are recognized." ("XdndActionAsk" . ask)) "Mapping from XDND action types to lisp symbols.") +(declare-function x-change-window-property "xfns.c" + (prop value &optional frame type format outer-P)) + (defun x-dnd-init-xdnd-for-frame (frame) "Set the XdndAware property for FRAME to indicate that we do XDND." (x-change-window-property "XdndAware" @@ -420,8 +426,11 @@ otherwise return the frame coordinates." (+ frame-real-top (nth 1 edges)))) (cons frame-real-left frame-real-top)))) -(declare-function x-get-atom-name "xselect.c") -(declare-function x-send-client-message "xselect.c") +(declare-function x-get-atom-name "xselect.c" (value &optional frame)) +(declare-function x-send-client-message "xselect.c" + (display dest from message-type format values)) +(declare-function x-get-selection-internal "xselect.c" + (selection-symbol target-type &optional time-stamp)) (defun x-dnd-handle-xdnd (event frame window message format data) "Receive one XDND event (client message) and send the appropriate reply. -- cgit v1.2.1