Index: gtkcellrenderertext.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderertext.c,v
retrieving revision 1.83.2.1
diff -u -r1.83.2.1 gtkcellrenderertext.c
--- gtkcellrenderertext.c	9 Sep 2005 18:39:52 -0000	1.83.2.1
+++ gtkcellrenderertext.c	13 Oct 2005 11:54:43 -0000
@@ -77,6 +77,7 @@
   PROP_SINGLE_PARAGRAPH_MODE,
   PROP_WIDTH_CHARS,
   PROP_WRAP_WIDTH,
+  PROP_ALIGN,
   
   /* Style args */
   PROP_BACKGROUND,
@@ -138,6 +139,7 @@
   PangoLanguage *language;
   PangoEllipsizeMode ellipsize;
   PangoWrapMode wrap_mode;
+  PangoAlignment align;
   
   gulong populate_popup_id;
   gulong entry_menu_popdown_timeout;
@@ -194,6 +196,7 @@
 
   priv->width_chars = -1;
   priv->wrap_width = -1;
+  priv->align = PANGO_ALIGN_LEFT;
 }
 
 static void
@@ -498,6 +501,21 @@
 						     -1,
 						     GTK_PARAM_READWRITE));
 
+  /**
+   * GtkCellRendererText:alignment:
+   *
+   * Specifies how to align the lines of text.
+   *
+   * Since: 2.10
+   */
+  g_object_class_install_property (object_class,
+                                   PROP_ALIGN,
+                                   g_param_spec_enum ("alignment",
+						      P_("Alignment"),
+						      P_("How to align the lines"),
+						      PANGO_TYPE_ALIGNMENT,
+						      PANGO_ALIGN_LEFT,
+						      GTK_PARAM_READWRITE));
   
   /* Style props are set or not */
 
@@ -749,6 +767,10 @@
       g_value_set_int (value, priv->wrap_width);
       break;
       
+    case PROP_ALIGN:
+      g_value_set_enum (value, priv->align);
+      break;
+
     case PROP_BACKGROUND_SET:
       g_value_set_boolean (value, celltext->background_set);
       break;
@@ -1249,6 +1271,10 @@
       priv->width_chars = g_value_get_int (value);
       break;  
 
+    case PROP_ALIGN:
+      priv->align = g_value_get_enum (value);
+      break;
+
     case PROP_BACKGROUND_SET:
       celltext->background_set = g_value_get_boolean (value);
       break;
@@ -1445,6 +1471,8 @@
       pango_layout_set_width (layout, -1);
       pango_layout_set_wrap (layout, PANGO_WRAP_CHAR);
     }
+
+  pango_layout_set_alignment (layout, priv->align);
 
   pango_layout_set_attributes (layout, attr_list);
 
