--- gtk/gtktextiter.c	2007/10/20 15:17:29	1.1
+++ gtk/gtktextiter.c	2007/10/20 15:22:26
@@ -25,6 +25,7 @@
  */
 
 #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API
+#define GTK_TEXT_ITER_USE_REAL_INTERNAL_DEFINITION
 #include <config.h>
 #include "gtktextiter.h"
 #include "gtktextbtree.h"
@@ -36,9 +37,10 @@
 
 #define FIX_OVERFLOWS(varname) if ((varname) == G_MININT) (varname) = G_MININT + 1
 
-typedef struct _GtkTextRealIter GtkTextRealIter;
+typedef struct _GtkTextIter GtkTextRealIter;
 
-struct _GtkTextRealIter
+/* GTK_TEXT_ITER_USE_REAL_INTERNAL_DEFINITION */
+struct _GtkTextIter
 {
   /* Always-valid information */
   GtkTextBTree *tree;
--- gtk/gtktextiter.h	2007/10/20 15:17:30	1.1
+++ gtk/gtktextiter.h	2007/10/20 15:19:43
@@ -48,6 +48,7 @@ typedef struct _GtkTextBuffer GtkTextBuf
 
 #define GTK_TYPE_TEXT_ITER     (gtk_text_iter_get_type ())
 
+#ifndef GTK_TEXT_ITER_USE_REAL_INTERNAL_DEFINITION
 struct _GtkTextIter {
   /* GtkTextIter is an opaque datatype; ignore all these fields.
    * Initialize the iter with gtk_text_buffer_get_iter_*
@@ -70,6 +71,7 @@ struct _GtkTextIter {
   gint dummy13;
   gpointer dummy14;
 };
+#endif
 
 
 /* This is primarily intended for language bindings that want to avoid
