Index: gtk/gtktextbuffer.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktextbuffer.c,v
retrieving revision 1.99
diff -u -r1.99 gtktextbuffer.c
--- gtk/gtktextbuffer.c	26 Mar 2005 05:49:14 -0000	1.99
+++ gtk/gtktextbuffer.c	4 Apr 2005 19:50:06 -0000
@@ -72,7 +72,8 @@
   PROP_0,
 
   /* Construct */
-  PROP_TAG_TABLE
+  PROP_TAG_TABLE,
+  PROP_TEXT
 };
 
 enum {
@@ -187,6 +188,21 @@
                                                         GTK_TYPE_TEXT_TAG_TABLE,
                                                         GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
 
+  /**
+   * GtkTextBuffer:text:
+   *
+   * Text content of the buffer.
+   *
+   * Since: 2.8
+   */
+  g_object_class_install_property (object_class,
+                                   PROP_TEXT,
+                                   g_param_spec_string ("text",
+                                                        P_("Text"),
+                                                        P_("Current text of the buffer"),
+							"",
+                                                        GTK_PARAM_READWRITE));
+
   signals[INSERT_TEXT] =
     g_signal_new ("insert_text",
                   G_OBJECT_CLASS_TYPE (object_class),
@@ -386,6 +402,10 @@
     case PROP_TAG_TABLE:
       set_table (text_buffer, g_value_get_object (value));
       break;
+    case PROP_TEXT:
+      gtk_text_buffer_set_text (text_buffer, 
+				g_value_get_string (value), -1);
+      break;
 
     default:
       break;
@@ -407,6 +427,17 @@
     case PROP_TAG_TABLE:
       g_value_set_object (value, get_table (text_buffer));
       break;
+    case PROP_TEXT:
+    {
+      GtkTextIter start, end;
+      
+      gtk_text_buffer_get_start_iter (text_buffer, &start);
+      gtk_text_buffer_get_end_iter (text_buffer, &end);
+	    
+      g_value_set_string (value,
+			  gtk_text_buffer_get_text (text_buffer, &start, &end, FALSE));
+      break;
+    }
 
     default:
       break;
