---
 ChangeLog                  |    5 +++++
 pango-view/viewer-render.c |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2d112f6..f37b52e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-26  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
+
+	* pango-view/viewer-render.c: (make_layout), (parse_options):
+	Add option for testing justified text.
+
 2007-04-23  Behdad Esfahbod  <behdad@gnome.org>
 
 	* === Released 1.16.3 ===
diff --git a/pango-view/viewer-render.c b/pango-view/viewer-render.c
index ed79359..b0940b0 100644
--- a/pango-view/viewer-render.c
+++ b/pango-view/viewer-render.c
@@ -54,6 +54,7 @@ const char *opt_text = NULL;
 gboolean opt_waterfall = FALSE;
 int opt_width = -1;
 int opt_indent = 0;
+gboolean opt_justify = 0;
 int opt_runs = 1;
 PangoEllipsizeMode opt_ellipsize = PANGO_ELLIPSIZE_NONE;
 PangoGravity opt_gravity = PANGO_GRAVITY_SOUTH;
@@ -111,6 +112,7 @@ make_layout(PangoContext *context,
 
   pango_layout_set_auto_dir (layout, opt_auto_dir);
   pango_layout_set_ellipsize (layout, opt_ellipsize);
+  pango_layout_set_justify (layout, opt_justify);
 
   font_description = get_font_description ();
   if (size > 0)
@@ -563,6 +565,8 @@ parse_options (int argc, char *argv[])
      "Hinting style",					    "none/auto/full"},
     {"indent",		0, 0, G_OPTION_ARG_INT,				&opt_indent,
      "Width in points to indent paragraphs",			    "points"},
+    {"justify",		0, 0, G_OPTION_ARG_NONE,			&opt_justify,
+     "Align paragraph lines to be justified",			    	NULL},
     {"margin",		0, 0, G_OPTION_ARG_INT,				&opt_margin,
      "Set the margin on the output in pixels",			    "pixels"},
     {"markup",		0, 0, G_OPTION_ARG_NONE,			&opt_markup,
-- 
1.5.1.2