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:
parent
f82329de35
commit
81bfc91c7a
@ -714,9 +714,11 @@ _gtk_builder_construct (GtkBuilder *builder,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
obj = g_object_newv (info->type,
|
obj = g_object_newv (info->type,
|
||||||
construct_parameters->len,
|
construct_parameters->len,
|
||||||
(GParameter *)construct_parameters->data);
|
(GParameter *)construct_parameters->data);
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/* No matter what, make sure we have a reference.
|
/* No matter what, make sure we have a reference.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user