diff options
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r-- | pango/pango-tabs.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) |