Ignore deprecation warnings for g_object_newv()

GLib has deprecated GParameter and g_object_newv(); until we switch to
the new g_object_new_with_properties() API, and bump GLib required
version, we should simply ignore the compiler warnings.
This commit is contained in:
Emmanuele Bassi 2017-04-02 16:36:07 +01:00
parent 3d2c81c8f1
commit 4471f274b9

View File

@ -708,9 +708,11 @@ _gtk_builder_construct (GtkBuilder *builder,
}
else
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
obj = g_object_newv (info->type,
construct_parameters->len,
(GParameter *)construct_parameters->data);
G_GNUC_END_IGNORE_DEPRECATIONS
/* No matter what, make sure we have a reference.
*