Commit f15cf8af authored by Matthias Clasen's avatar Matthias Clasen
Browse files

tabs: Add a missing setter

Add pango_tab_array_set_positions_in_pixels, to help
the serializer out.
parent 50d63032
......@@ -369,6 +369,25 @@ pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array)
return tab_array->positions_in_pixels;
}
/**
* pango_tab_array_set_positions_in_pixels:
* @tab_array: a `PangoTabArray`
* @positions_in_pixels: whether positions are in pixels
*
* Sets whether positions in this array are specified in
* pixels.
*
* Since: 1.50
*/
void
pango_tab_array_set_positions_in_pixels (PangoTabArray *tab_array,
gboolean positions_in_pixels)
{
g_return_if_fail (tab_array != NULL);
tab_array->positions_in_pixels = positions_in_pixels;
}
/**
* pango_tab_array_to_string:
* @tab_array: a `PangoTabArray`
......
......@@ -93,6 +93,10 @@ void pango_tab_array_get_tabs (PangoTabArray *tab_array,
PANGO_AVAILABLE_IN_ALL
gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array);
PANGO_AVAILABLE_IN_1_50
void pango_tab_array_set_positions_in_pixels (PangoTabArray *tab_array,
gboolean positions_in_pixels);
PANGO_AVAILABLE_IN_1_50
char * pango_tab_array_to_string (PangoTabArray *tab_array);
PANGO_AVAILABLE_IN_1_50
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment