From 7dd23329883fb13ad3c94fc8df66fe6920dd1acd Mon Sep 17 00:00:00 2001 From: espen Date: Wed, 17 Oct 2007 14:52:19 +0000 Subject: [PATCH] Instances of TEXT-ITER properly allocated as memory slices --- gtk/gtktext.lisp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtktext.lisp b/gtk/gtktext.lisp index d8cb360..4b9e6dd 100644 --- a/gtk/gtktext.lisp +++ b/gtk/gtktext.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: gtktext.lisp,v 1.8 2006-04-26 12:29:11 espen Exp $ +;; $Id: gtktext.lisp,v 1.9 2007-10-17 14:52:19 espen Exp $ (in-package "GTK") @@ -343,6 +343,11 @@ ;;; Text Iter +(defmethod allocate-foreign ((text-iter text-iter) &rest initargs) + (declare (ignore initargs)) + (let ((size (foreign-size (class-of text-iter)))) + (slice-alloc size))) + (defbinding text-iter-get-char () int (iter text-iter)) -- 2.11.0