summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-access-point.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-03-01 22:58:31 +0100
committerDan Williams <dcbw@redhat.com>2013-04-08 11:30:32 -0500
commit661d09852d9b572932a6229a4092be6ee670cfab (patch)
treea931cb9998fb00cdf2a6a5d21fa1139a2580df80 /libnm-glib/nm-access-point.c
parent44f350c99d0a7e7fed66b5fd839e5f97335610a6 (diff)
downloadNetworkManager-661d09852d9b572932a6229a4092be6ee670cfab.tar.gz
libnm-glib: use helpers to create dbus proxies
When using a private connection, we need to use dbus_g_proxy_new_for_peer() because the bus isn't involved. Since many parts of libnm-glib create a proxy for their corresponding remote object, consolidate the proxy creation logic. A later patch will add logic to use a private connection versus a bus-based one.
Diffstat (limited to 'libnm-glib/nm-access-point.c')
-rw-r--r--libnm-glib/nm-access-point.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c
index 9326d3abce..ade8d6ee61 100644
--- a/libnm-glib/nm-access-point.c
+++ b/libnm-glib/nm-access-point.c
@@ -540,12 +540,7 @@ constructed (GObject *object)
G_OBJECT_CLASS (nm_access_point_parent_class)->constructed (object);
priv = NM_ACCESS_POINT_GET_PRIVATE (object);
-
- priv->proxy = dbus_g_proxy_new_for_name (nm_object_get_connection (NM_OBJECT (object)),
- NM_DBUS_SERVICE,
- nm_object_get_path (NM_OBJECT (object)),
- NM_DBUS_INTERFACE_ACCESS_POINT);
-
+ priv->proxy = _nm_object_new_proxy (NM_OBJECT (object), NULL, NM_DBUS_INTERFACE_ACCESS_POINT);
register_properties (NM_ACCESS_POINT (object));
}