summaryrefslogtreecommitdiff
path: root/pango/pango-tabs.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-01-28 23:14:05 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-01-28 23:14:05 +0000
commitd2c4e2127c12d3668caa2d52092411ba840b8fdb (patch)
tree9a617db8aaf7f21caf6b42a7eb2bfcb1904c1ba1 /pango/pango-tabs.c
parent3932f8ef5723867ee726adcbc70b536317aa0f31 (diff)
downloadpango-d2c4e2127c12d3668caa2d52092411ba840b8fdb.tar.gz
Implement other tab alignments. Bug #325547, Itai Bar-Haim.
2006-01-28 Behdad Esfahbod <behdad@gnome.org> Implement other tab alignments. Bug #325547, Itai Bar-Haim. * docs/tmpl/tab-stops.sgml: Documented new tab alignment enum vals. * pango/pango-tabs.h, pango/pango-tabs.c: Added support for tab alignments PANGO_TAB_RIGHT and PANGO_TAB_CENTER. * examples/renderdemo.h, examples/renderdemo.c: Added support for --tab-spec. * examples/GLASS.utf8, examples/HELLO.utf8: Cleaned up tabs.
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r--pango/pango-tabs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c
index aedd9bce..73343bc4 100644
--- a/pango/pango-tabs.c
+++ b/pango/pango-tabs.c
@@ -257,13 +257,12 @@ pango_tab_array_resize (PangoTabArray *tab_array,
/**
* pango_tab_array_set_tab:
* @tab_array: a #PangoTabArray
- * @tab_index: the index of a tab stop
+ * @tab_index: the index of a tab stop, starting from zero
* @alignment: tab alignment
* @location: tab location in Pango units
*
- * Sets the alignment and location of a tab stop.
- * @alignment must always be #PANGO_TAB_LEFT in the current
- * implementation.
+ * Sets the alignment and location of a tab stop. Resizes the
+ * tab array if needed.
*
**/
void
@@ -274,7 +273,6 @@ pango_tab_array_set_tab (PangoTabArray *tab_array,
{
g_return_if_fail (tab_array != NULL);
g_return_if_fail (tab_index >= 0);
- g_return_if_fail (alignment == PANGO_TAB_LEFT);
g_return_if_fail (location >= 0);
if (tab_index >= tab_array->size)