builder: Consistently use builder_construct

It seems odd to use this helper in one place,
but not the other.
This commit is contained in:
Matthias Clasen 2021-09-27 12:57:47 -04:00
parent e3ecd5d23e
commit c8f29a689d

View File

@ -1713,9 +1713,7 @@ parse_custom (GtkBuildableParseContext *context,
ObjectInfo* object_info = (ObjectInfo*)parent_info; ObjectInfo* object_info = (ObjectInfo*)parent_info;
if (!object_info->object) if (!object_info->object)
{ {
object_info->object = _gtk_builder_construct (data->builder, object_info->object = builder_construct (data, object_info, error);
object_info,
error);
if (!object_info->object) if (!object_info->object)
return TRUE; /* A GError is already set */ return TRUE; /* A GError is already set */
} }