chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
792ab9c
)
Added missing DESTROY-FUNCTION method for TREE-PATH
author
espen
<espen>
Thu, 3 Mar 2005 10:05:32 +0000
(10:05 +0000)
committer
espen
<espen>
Thu, 3 Mar 2005 10:05:32 +0000
(10:05 +0000)
gtk/gtktree.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtktree.lisp
b/gtk/gtktree.lisp
index b65bc52cd5c64bc8480beae099d73509e6d18f78..d01bc2cc16bd6fee8a8258d5d58b3f26e5766089 100644
(file)
--- a/
gtk/gtktree.lisp
+++ b/
gtk/gtktree.lisp
@@
-15,7
+15,7
@@
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: gtktree.lisp,v 1.
7 2005-02-27 19:56:06
espen Exp $
+;; $Id: gtktree.lisp,v 1.
8 2005-03-03 10:05:32
espen Exp $
(in-package "GTK")
(in-package "GTK")
@@
-275,6
+275,12
@@
(defmethod reader-function ((type (eql 'tree-path)) &rest args)
#'(lambda (location &optional (offset 0))
(%tree-path-to-vector (funcall reader location offset)))))
#'(lambda (location &optional (offset 0))
(%tree-path-to-vector (funcall reader location offset)))))
+(defmethod destroy-function ((type (eql 'tree-path)) &rest args)
+ (declare (ignore type args))
+ (let ((reader (reader-function 'pointer)))
+ #'(lambda (location &optional (offset 0))
+ (%tree-path-free (funcall reader location offset)))))
+
(defbinding %tree-row-reference-new () pointer
(model tree-model)
(defbinding %tree-row-reference-new () pointer
(model tree-model)