X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/8b70d56024b8c55a52e045c0ec29352a63c12d32..cc74b2c987edc3e2bc85413e92f33e2690a32b1c:/gtk/gtkselection.lisp?ds=sidebyside diff --git a/gtk/gtkselection.lisp b/gtk/gtkselection.lisp index 7e7f52c..9fa169e 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.1 2006-02-06 11:57:27 espen Exp $ +;; $Id: gtkselection.lisp,v 1.4 2006-02-08 22:21:07 espen Exp $ (in-package "GTK") @@ -28,20 +28,6 @@ (in-package "GTK") ;;;; Selection -(defbinding %selection-data-copy () pointer - (location pointer)) - -(defbinding %selection-data-free () nil - (location pointer)) - -(defmethod reference-foreign ((class (eql (find-class 'selection-data))) location) - (declare (ignore class)) - (%selection-data-copy location)) - -(defmethod unreference-foreign ((class (eql (find-class 'selection-data))) location) - (declare (ignore class)) - (%selection-data-free location)) - (defbinding %target-list-ref () pointer (location pointer)) @@ -61,12 +47,10 @@ (defbinding %target-list-new () pointer ((length targets) int)) (defmethod initialize-instance ((target-list target-list) &key targets) - (setf - (slot-value target-list 'location) - (%target-list-new targets)) + (setf (foreign-location target-list) (%target-list-new targets)) (call-next-method)) -(defbinding target-list-add (target-list targets &optional flags info) nil +(defbinding target-list-add (target-list target &optional flags info) nil (target-list target-list) (target gdk:atom) (flags unsigned-int) @@ -188,7 +172,7 @@ (defbinding selection-data-targets-include-image-p (selection-data &optional wri (defbinding selection-data-targets-include-text-p (selection-data) boolean (selection-data selection-data)) -(defbinding selection-remove-all (selection-data) boolean +(defbinding selection-remove-all () boolean (widget widget)) @@ -212,7 +196,7 @@ (defcallback %clipboard-clear-func (nil (clipboard pointer) (defbinding clipboard-set-with-data (clipboard targets get-func clear-func) gobject (clipboard clipboard) - (targets (vector target-entry)) + (targets (vector (inlined target-entry))) ((length targets) unsigned-int) (%clipboard-get-func callback) (%clipboard-clear-func callback) @@ -320,6 +304,7 @@ (defbinding clipboard-set-can-store () nil (defbinding clipboard-store () nil (clipboard clipboard)) + ;;;; Drag and Drop (defbinding drag-dest-set (widget flags targets actions) nil