gio: Fix deprecation warnings for g_object_newv() API

This commit is contained in:
Philip Withnall
2017-03-31 10:59:26 +01:00
parent e2c3b7f634
commit c11908ab7d
3 changed files with 6 additions and 1 deletions

View File

@@ -241,7 +241,8 @@ test_default (void)
m = g_network_monitor_get_default ();
g_assert (G_IS_NETWORK_MONITOR (m));
monitor = g_initable_newv (G_TYPE_NETWORK_MONITOR_BASE, 0, NULL, NULL, &error);
monitor = g_object_new (G_TYPE_NETWORK_MONITOR_BASE, NULL);
g_initable_init (G_INITABLE (monitor), NULL, &error);
g_assert_no_error (error);
/* In the default configuration, all addresses are reachable */