summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-22 20:05:59 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2012-12-22 20:08:56 (GMT)
commit63bf36c818b2cfa0a971ff85f84069f0981a1f2b (patch)
treeb7c3990896fe016c0b46dabc23f87d2887a9eb47 /gdbus
parent57279cee13fc3f3b43bf3c144e5be3a530c6d87e (diff)
downloadconnman-63bf36c818b2cfa0a971ff85f84069f0981a1f2b.zip
connman-63bf36c818b2cfa0a971ff85f84069f0981a1f2b.tar.gz
connman-63bf36c818b2cfa0a971ff85f84069f0981a1f2b.tar.bz2
gdbus: Avoid using g_ptr_array_new_full convenience function
The g_ptr_array_new_full function only got introduced with GLib 2.30 and to avoid requiring a newer GLib use g_ptr_array_set_free_func instead.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbus/client.c b/gdbus/client.c
index 4709cdd..3b00080 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -1008,7 +1008,8 @@ GDBusClient *g_dbus_client_new(DBusConnection *connection,
get_name_owner(client, client->service_name);
- client->match_rules = g_ptr_array_new_full(4, g_free);
+ client->match_rules = g_ptr_array_sized_new(4);
+ g_ptr_array_set_free_func(client->match_rules, g_free);
g_ptr_array_add(client->match_rules, g_strdup_printf("type='signal',"
"sender='%s',path='%s',interface='%s',"