X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/5b5d2f598d11bb36f38097d533a7a2231abbe9ce..4e79d27ca0ea152e7e6fdc807ccb0d49bf73b0da:/gtk/gtkselection.lisp diff --git a/gtk/gtkselection.lisp b/gtk/gtkselection.lisp index a0b1cc5..1b7dfc5 100644 --- a/gtk/gtkselection.lisp +++ b/gtk/gtkselection.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtkselection.lisp,v 1.12 2007/12/13 14:29:59 espen Exp $ +;; $Id: gtkselection.lisp,v 1.14 2008/01/02 16:01:17 espen Exp $ (in-package "GTK") @@ -201,7 +201,7 @@ (define-callback %clipboard-clear-callback nil (declare (ignore clipboard)) (funcall (cdr (find-user-data callback-ids)))) -;; Deprecated, use clipboard-set-content +;; Deprecated, use clipboard-set-contents (defbinding clipboard-set-with-data (clipboard targets get-func clear-func) boolean (clipboard clipboard) (targets (vector (inlined target-entry))) @@ -210,8 +210,8 @@ (defbinding clipboard-set-with-data (clipboard targets get-func clear-func) bool (%clipboard-clear-callback callback) ((register-user-data (cons get-func clear-func)) unsigned-int)) -(defun clipboard-set-content (clipboard targets get-func &optional clear-func) - (%clipboard-set-with-data clipboard (ensure-target-table targets) +(defun clipboard-set-contents (clipboard targets get-func &optional clear-func) + (clipboard-set-with-data clipboard (ensure-target-table targets) get-func (or clear-func #'(lambda ())))) (defbinding clipboard-clear () nil