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

paginator-box: Fix hdy_paginator_box_get_nth_child()

Return the actual widget, not child info struct.

A leftover from 710bcaac

Signed-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <>
parent d4e617c9
...@@ -1192,9 +1192,13 @@ GtkWidget * ...@@ -1192,9 +1192,13 @@ GtkWidget *
hdy_paginator_box_get_nth_child (HdyPaginatorBox *self, hdy_paginator_box_get_nth_child (HdyPaginatorBox *self,
guint n) guint n)
{ {
HdyPaginatorBoxChildInfo *info;
g_return_val_if_fail (HDY_IS_PAGINATOR_BOX (self), NULL); g_return_val_if_fail (HDY_IS_PAGINATOR_BOX (self), NULL);
g_return_val_if_fail (n < g_list_length (self->children), 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;
} }
Supports Markdown
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