Commit 43096d64 authored by Behdad Esfahbod's avatar Behdad Esfahbod
Browse files

Minor

parent 64937a55
......@@ -1110,7 +1110,7 @@ pango_layout_get_text (PangoLayout *layout)
gint
pango_layout_get_character_count (PangoLayout *layout)
{
g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL);
g_return_val_if_fail (PANGO_IS_LAYOUT (layout), 0);
return layout->n_chars;
}
......@@ -1318,11 +1318,13 @@ pango_layout_get_log_attrs (PangoLayout *layout,
*
* Since: 1.30
*/
PangoLogAttr *
const PangoLogAttr *
pango_layout_get_log_attrs_readonly (PangoLayout *layout,
gint *n_attrs)
{
g_return_if_fail (layout != NULL);
if (n_attrs)
*n_attrs = 0;
g_return_val_if_fail (layout != NULL, NULL);
pango_layout_check_lines (layout);
......
......@@ -168,8 +168,8 @@ void pango_layout_get_log_attrs (PangoLayout *layout,
PangoLogAttr **attrs,
gint *n_attrs);
PangoLogAttr *pango_layout_get_log_attrs_readonly (PangoLayout *layout,
gint *n_attrs);
const PangoLogAttr *pango_layout_get_log_attrs_readonly (PangoLayout *layout,
gint *n_attrs);
void pango_layout_index_to_pos (PangoLayout *layout,
int index_,
......
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