summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-20 20:35:45 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-20 20:35:45 +0000
commitd166f21c486ecda8c67d94ec0392f837c5f3eea9 (patch)
tree48ea486638afadaf9d734c59f9bbb06102f5e4a0 /examples
parent919d3089dae2e2ad011c9b94b4847c30b536ac63 (diff)
downloadpango-d166f21c486ecda8c67d94ec0392f837c5f3eea9.tar.gz
Correct switched return value of EAST/WEST.
2006-08-20 Behdad Esfahbod <behdad@gnome.org> * pango/pango-matrix.c (pango_matrix_to_gravity): Correct switched return value of EAST/WEST. * pango/pango-types.h (PangoGravity): Add PANGO_GRAVITY_AUTO. * pango/pango-context.h: Add pango_context_get_gravity(). * examples/renderdemo.c (parse_gravity), (parse_options): * pango/pango-context.c (pango_context_init), (update_resolved_gravity), (pango_context_set_matrix), (pango_context_set_base_gravity), (pango_context_get_gravity), (itemize_state_init), (get_shaper_and_font): * pango/pango-layout.c (line_set_resolved_dir): * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_glyph_extents_cache_init), (_pango_cairo_fc_font_new): * pango/pangofc-fontmap.c (pango_fc_make_pattern), (pango_fc_font_map_load_fontset): * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/main.sgml: Update to above.
Diffstat (limited to 'examples')
-rw-r--r--examples/renderdemo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 0d989064..17b50612 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -403,7 +403,7 @@ parse_gravity (const char *name,
g_set_error(error,
G_OPTION_ERROR,
G_OPTION_ERROR_BAD_VALUE,
- "Argument for --gravity must be one of south/east/north/west");
+ "Argument for --gravity must be one of south/east/north/west/auto");
ret = FALSE;
}
@@ -584,7 +584,7 @@ parse_options (int argc, char *argv[])
{"font", 0, 0, G_OPTION_ARG_STRING, &opt_font,
"Set the font description", "description"},
{"gravity", 0, 0, G_OPTION_ARG_CALLBACK, &parse_gravity,
- "Gravity", "south/east/north/west"},
+ "Gravity", "south/east/north/west/auto"},
{"header", 0, 0, G_OPTION_ARG_NONE, &opt_header,
"Display the options in the output", NULL},
{"hinting", 0, 0, G_OPTION_ARG_CALLBACK, &parse_hinting,