chiark / gitweb /
Added ALLOCATE-FOREIGN method
[clg] / gtk / gtkselection.lisp
index 9fa169e9d60bbec5d1e17dcde742aac57545b0d8..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.4 2006-02-08 22:21:07 espen Exp $
+;; $Id: gtkselection.lisp,v 1.5 2006-02-09 22:32:47 espen Exp $
 
 
 (in-package "GTK")
@@ -46,9 +46,8 @@ (defbinding %target-list-new () pointer
   (targets (vector (inlined target-entry)))
   ((length targets) int))
   
-(defmethod initialize-instance ((target-list target-list) &key targets)
-  (setf (foreign-location target-list) (%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 target &optional flags info) nil
   (target-list target-list)