mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 19:24:38 +00:00
2008-03-29 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.c - (access_point_added_proxy): create new APs if not found git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3512 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
512350a5cd
commit
961e3e7bf7
|
@ -1,3 +1,8 @@
|
|||
2008-03-29 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-glib/nm-device-802-11-wireless.c
|
||||
- (access_point_added_proxy): create new APs if not found
|
||||
|
||||
2008-03-29 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-glib/nm-client.c
|
||||
|
|
|
@ -258,13 +258,28 @@ static void
|
|||
access_point_added_proxy (DBusGProxy *proxy, char *path, gpointer user_data)
|
||||
{
|
||||
NMDevice80211Wireless *self = NM_DEVICE_802_11_WIRELESS (user_data);
|
||||
NMAccessPoint *ap;
|
||||
NMDevice80211WirelessPrivate *priv;
|
||||
GObject *ap;
|
||||
|
||||
g_return_if_fail (self != NULL);
|
||||
|
||||
ap = nm_device_802_11_wireless_get_access_point_by_path (self, path);
|
||||
ap = G_OBJECT (nm_device_802_11_wireless_get_access_point_by_path (self, path));
|
||||
if (!ap) {
|
||||
DBusGConnection *connection = nm_object_get_connection (NM_OBJECT (self));
|
||||
|
||||
priv = NM_DEVICE_802_11_WIRELESS_GET_PRIVATE (self);
|
||||
ap = G_OBJECT (nm_object_cache_get (path));
|
||||
if (ap) {
|
||||
g_ptr_array_add (priv->aps, g_object_ref (ap));
|
||||
} else {
|
||||
ap = G_OBJECT (nm_access_point_new (connection, path));
|
||||
if (ap)
|
||||
g_ptr_array_add (priv->aps, ap);
|
||||
}
|
||||
}
|
||||
|
||||
if (ap)
|
||||
g_signal_emit (self, signals[ACCESS_POINT_ADDED], 0, ap);
|
||||
g_signal_emit (self, signals[ACCESS_POINT_ADDED], 0, NM_ACCESS_POINT (ap));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue