chiark / gitweb /
Added ALLOCATE-FOREIGN method
[clg] / gtk / gtkselection.lisp
index 36ef3cc408f176851d19b4f74db2fb37e347bb4d..3c0eee2dc865eb63016d4d8ff843ad05ea87efd9 100644 (file)
@@ -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.2 2006-02-06 14:02:17 espen Exp $
+;; $Id: gtkselection.lisp,v 1.5 2006-02-09 22:32:47 espen Exp $
 
 
 (in-package "GTK")
@@ -46,13 +46,10 @@ (defbinding %target-list-new () pointer
   (targets (vector (inlined target-entry)))
   ((length targets) int))
   
-(defmethod initialize-instance ((target-list target-list) &key targets)
-  (setf  
-   (slot-value target-list 'location) 
-   (%target-list-new targets))
-  (call-next-method))
+(defmethod allocate-foreign ((target-list target-list) &key targets)
+  (%target-list-new targets))
 
-(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)
@@ -174,7 +171,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))