Commit 505af8fb authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas

paginator-box: Fix hdy_paginator_box_get_nth_child()

Return the actual widget, not child info struct.

A leftover from 710bcaacSigned-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <>
parent d4e617c9
Pipeline #48378 passed with stages
in 9 minutes and 4 seconds
......@@ -1192,9 +1192,13 @@ GtkWidget *
hdy_paginator_box_get_nth_child (HdyPaginatorBox *self,
guint n)
HdyPaginatorBoxChildInfo *info;
g_return_val_if_fail (HDY_IS_PAGINATOR_BOX (self), NULL);
g_return_val_if_fail (n < g_list_length (self->children), NULL);
return g_list_nth_data (self->children, n);
info = g_list_nth_data (self->children, n);
return info->widget;
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