paned: Don't ignore the type attribute

We were meaning to only handle <child> here for
compatibility, not <child type="somethingelse">.
This commit is contained in:
Matthias Clasen 2020-05-12 16:26:28 -04:00
parent a37dc29850
commit b230ea2140

View File

@ -772,7 +772,7 @@ gtk_paned_buildable_add_child (GtkBuildable *buildable,
gtk_paned_set_resize_end_child (self, TRUE);
gtk_paned_set_shrink_end_child (self, TRUE);
}
else if (GTK_IS_WIDGET (child))
else if (type == NULL && GTK_IS_WIDGET (child))
{
if (self->start_child == NULL)
{