priv->visible_child is not a GtkWidget but a custom struct holding the widget. So use the getter instead.