chiark / gitweb /
Added code to re-register sub-classed gobject classes when initializing a saved core...
[clg] / gtk / gtkselection.lisp
index c1c6efb8b6a10082a9fc0ebaf19bed6fe03468d6..d75ae3c42e19503c16366faf12b27aa17fa8138a 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))