chiark / gitweb /
Instances of TEXT-ITER properly allocated as memory slices
authorespen <espen>
Wed, 17 Oct 2007 14:52:19 +0000 (14:52 +0000)
committerespen <espen>
Wed, 17 Oct 2007 14:52:19 +0000 (14:52 +0000)
gtk/gtktext.lisp

index 94e39d55b38d8e143caa66198b04cb858844ac0d..c56ba91a1ddbcd1c8c472389af101619c7d7c872 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: 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 @@ (defbinding text-buffer-remove-selection-clipboard () nil
 
 ;;; 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))