Commit 81bfc91c authored by Emmanuele Bassi's avatar Emmanuele Bassi

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.
parent f82329de
......@@ -714,9 +714,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.
*
......
Markdown is supported
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