chiark / gitweb /
Infra: Rudimentary setup system.
[clg] / gtk / gtktext.lisp
index d8cb3606c6ea3ace8311038cadc9c956c3f83492..827f928180009b82a5b3a01a565a9747d5cc8ca8 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.10 2007-10-22 09:21:50 espen Exp $
 
 
 (in-package "GTK")
@@ -343,6 +343,12 @@ (defbinding text-buffer-remove-selection-clipboard () nil
 
 ;;; Text Iter
 
+#?(pkg-exists-p "gtk+-2.0" :atleast-version "2.10.0")
+(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))