Index: examples/renderdemo.c
===================================================================
RCS file: /cvs/gnome/pango/examples/renderdemo.c,v
retrieving revision 1.22
diff -u -p -r1.22 renderdemo.c
--- examples/renderdemo.c	9 Nov 2005 07:43:09 -0000	1.22
+++ examples/renderdemo.c	16 Jan 2006 11:21:49 -0000
@@ -57,6 +57,7 @@ int opt_indent = 0;
 int opt_runs = 1;
 PangoEllipsizeMode opt_ellipsize = PANGO_ELLIPSIZE_NONE;
 HintMode opt_hinting = HINT_DEFAULT;
+PangoTabAlign opt_tab_align = PANGO_TAB_LEFT;
 
 /* Text (or markup) to render */
 char *text;
@@ -368,11 +369,6 @@ parse_hinting (ArgContext *arg_context,
 	       const char *arg,
 	       gpointer    data)
 {
-  static GEnumClass *class = NULL;
-
-  if (!class)
-    class = g_type_class_ref (PANGO_TYPE_ELLIPSIZE_MODE);
-
   if (strcmp (arg, "none") == 0)
     opt_hinting = HINT_NONE;
   else if (strcmp (arg, "auto") == 0)
@@ -384,6 +380,22 @@ parse_hinting (ArgContext *arg_context,
 }
 
 void
+parse_tab_align (ArgContext *arg_context,
+	         const char *name,
+	         const char *arg,
+	         gpointer    data)
+{
+  if (strcmp (arg, "left") == 0)
+    opt_tab_align = PANGO_TAB_LEFT;
+  else if (strcmp (arg, "center") == 0)
+    opt_tab_align = PANGO_TAB_CENTER;
+  else if (strcmp (arg, "right") == 0)
+    opt_tab_align = PANGO_TAB_RIGHT;
+  else
+    fail ("--tab-align option must be one of left/center/right");
+}
+
+void
 parse_options (int argc, char *argv[])
 {
   static const ArgDesc args[] = {
@@ -421,6 +433,8 @@ parse_options (int argc, char *argv[])
       ARG_INT,      &opt_width, NULL },
     { "indent",     "Width in points to indent paragraphs",
       ARG_INT,      &opt_indent, NULL },
+    { "tab-align",  "Tab alignment [=left/center/right]",
+      ARG_CALLBACK, NULL, parse_tab_align },
     { "runs",       "Render text this many times",
       ARG_INT,      &opt_runs, NULL },
     { NULL, NULL, 0, NULL, NULL }
Index: examples/renderdemo.h
===================================================================
RCS file: /cvs/gnome/pango/examples/renderdemo.h,v
retrieving revision 1.7
diff -u -p -r1.7 renderdemo.h
--- examples/renderdemo.h	4 Nov 2005 23:43:10 -0000	1.7
+++ examples/renderdemo.h	16 Jan 2006 11:21:49 -0000
@@ -72,3 +72,4 @@ extern int opt_indent;
 extern int opt_runs;
 extern PangoEllipsizeMode opt_ellipsize;
 extern HintMode opt_hinting;
+extern PangoTabAlign opt_tab_align;
