From 16272a0a5682514e3eda47cb53fa0708ec8f178c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 29 Jan 2006 00:55:24 +0000 Subject: Reverted the tab alignments patch. --- pango/pango-tabs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pango/pango-tabs.c') diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c index 73343bc4..aedd9bce 100644 --- a/pango/pango-tabs.c +++ b/pango/pango-tabs.c @@ -257,12 +257,13 @@ pango_tab_array_resize (PangoTabArray *tab_array, /** * pango_tab_array_set_tab: * @tab_array: a #PangoTabArray - * @tab_index: the index of a tab stop, starting from zero + * @tab_index: the index of a tab stop * @alignment: tab alignment * @location: tab location in Pango units * - * Sets the alignment and location of a tab stop. Resizes the - * tab array if needed. + * Sets the alignment and location of a tab stop. + * @alignment must always be #PANGO_TAB_LEFT in the current + * implementation. * **/ void @@ -273,6 +274,7 @@ 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) -- cgit v1.2.1