[cells-gtk-cvs] CVS update: root/gtk-ffi/gtk-adds.c

Peter Denno pdenno at common-lisp.net
Sun Mar 6 17:04:09 UTC 2005


Update of /project/cells-gtk/cvsroot/root/gtk-ffi
In directory common-lisp.net:/tmp/cvs-serv23123/root/gtk-ffi

Modified Files:
	gtk-adds.c 
Log Message:
routine to get text iters
Date: Sun Mar  6 18:04:04 2005
Author: pdenno

Index: root/gtk-ffi/gtk-adds.c
diff -u root/gtk-ffi/gtk-adds.c:1.1 root/gtk-ffi/gtk-adds.c:1.2
--- root/gtk-ffi/gtk-adds.c:1.1	Sat Feb 26 23:18:24 2005
+++ root/gtk-ffi/gtk-adds.c	Sun Mar  6 18:04:02 2005
@@ -21,3 +21,12 @@
   return GTK_TEXT_VIEW(text_view)->popup_menu;
 }
 
+/* C programmers allocate iters on the stack. We use this.
+   Free it with gtk-text-iter-free */
+GtkTextIter *
+gtk_adds_text_iter_new ()
+{
+  GtkTextIter example;
+  return gtk_text_iter_copy(&example);
+}
+




More information about the Cells-gtk-cvs mailing list