2006-10-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c - (nm_name_owner_changed_handler): handle NMI coming and going, this somehow droppout in the refactor git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2064 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2006-10-13 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManager.c
|
||||
- (nm_name_owner_changed_handler): handle NMI coming and going,
|
||||
this somehow droppout in the refactor
|
||||
|
||||
2006-10-13 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* Huge DBus refactor:
|
||||
|
@@ -647,9 +647,7 @@ nm_name_owner_changed_handler (NMDBusManager *mgr,
|
||||
gboolean new_owner_good = (new && (strlen (new) > 0));
|
||||
|
||||
/* Only care about signals from HAL */
|
||||
if (strcmp (name, "org.freedesktop.Hal") != 0)
|
||||
return;
|
||||
|
||||
if (strcmp (name, "org.freedesktop.Hal") == 0) {
|
||||
if (!old_owner_good && new_owner_good) {
|
||||
/* HAL just appeared */
|
||||
if (!nm_hal_init (data, connection)) {
|
||||
@@ -660,6 +658,15 @@ nm_name_owner_changed_handler (NMDBusManager *mgr,
|
||||
/* HAL went away. Bad HAL. */
|
||||
nm_hal_deinit (data);
|
||||
}
|
||||
} else if (strcmp (name, NMI_DBUS_SERVICE) == 0) {
|
||||
if (!old_owner_good && new_owner_good) {
|
||||
/* NMI appeared, update stuff */
|
||||
nm_policy_schedule_allowed_ap_list_update (data);
|
||||
nm_dbus_vpn_schedule_vpn_connections_update (data);
|
||||
} else if (old_owner_good && !new_owner_good) {
|
||||
/* nothing */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user