diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-03 01:34:40 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-12-03 01:34:40 +0000 |
commit | fdef4305de8cd7e411a3da61bf1dcbd3a628b035 (patch) | |
tree | 1031695726cfd04b91c0891efa99d49b1fcb6a7e /pango/pango-tabs.c | |
parent | 50d630321da94186fe46590574b79c1d7f631605 (diff) | |
parent | 2e1a0a4b255cb1a40babbd6e72055bf06f85b1a9 (diff) | |
download | pango-fdef4305de8cd7e411a3da61bf1dcbd3a628b035.tar.gz |
Merge branch 'serializer-rewrite' into 'main'
Port the serializer to use our own json parser and printer
See merge request GNOME/pango!531
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r-- | pango/pango-tabs.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c index 0665161c..ab01cfe5 100644 --- a/pango/pango-tabs.c +++ b/pango/pango-tabs.c @@ -370,6 +370,25 @@ pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array) } /** + * 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` * |