Index: gtk/gtktextview.override
===================================================================
--- gtk/gtktextview.override	(revision 2924)
+++ gtk/gtktextview.override	(working copy)
@@ -218,6 +218,27 @@
                          TRUE, TRUE);
 }
 %%
+override gtk_text_iter_copy_from kwargs
+static PyObject *
+_wrap_gtk_text_iter_copy_from(PyGBoxed *self, PyObject *args, PyObject *kwargs)
+{
+    static char *kwlist[] = { "other", NULL };
+    PyGBoxed *other;
+
+    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GtkTextIter.get_slice",
+                                     kwlist, &other))
+        return NULL;
+    if (!pyg_boxed_check(other, GTK_TYPE_TEXT_ITER)) {
+        PyErr_SetString(PyExc_TypeError, "other must be a GtkTextIter");
+        return NULL;
+    }
+
+    *pyg_boxed_get(self, GtkTextIter) = *pyg_boxed_get(other, GtkTextIter);
+
+    Py_INCREF(Py_None);
+    return Py_None;
+}
+%%
 override gtk_text_iter_get_slice kwargs
 static PyObject *
 _wrap_gtk_text_iter_get_slice(PyGBoxed *self, PyObject *args, PyObject *kwargs)
Index: gtk/gtk-base.defs
===================================================================
--- gtk/gtk-base.defs	(revision 2924)
+++ gtk/gtk-base.defs	(working copy)
@@ -18934,6 +18934,15 @@
   (caller-owns-return #t)
 )
 
+(define-method copy_from
+  (of-object "GtkTextIter")
+  (c-name "gtk_text_iter_copy_from")
+  (return-type "none")
+  (parameters
+    '("const-GtkTextIter*" "other")
+  )
+)
+
 (define-method free
   (of-object "GtkTextIter")
   (c-name "gtk_text_iter_free")
@@ -18994,7 +19003,7 @@
   (parameters
     '("const-GtkTextIter*" "end")
   )
-)
+o)
 
 (define-method get_text
   (of-object "GtkTextIter")
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2924)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2007-10-28  Owen Taylor  <otaylor@redhat.com>
+
+	* gtk/gtk-base.defs gtk/gtktextview.override: Add an 'emulated'
+	gtk_text_iter_copy_from(), which is needed in cases where we have
+	to revalidate an existing iter. (#481715)
+
 2007-10-20  Gian Mario Tagliaretti  <gianmt@gnome.org>
 
 	* configure.in: raise pygobject dependency to 2.14.0, fixes #478718
