mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-28 09:50:45 +01:00
2007-10-06 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c - (connection_updated, nm_policy_new): recheck state when a connection gets updated git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2943 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
dff2886fb4
commit
a7ce89b24d
2 changed files with 20 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-10-06 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerPolicy.c
|
||||
- (connection_updated, nm_policy_new): recheck state when a connection
|
||||
gets updated
|
||||
|
||||
2007-10-06 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-manager.c
|
||||
|
|
|
|||
|
|
@ -484,6 +484,17 @@ connection_added (NMManager *manager,
|
|||
schedule_change_check (policy);
|
||||
}
|
||||
|
||||
static void
|
||||
connection_updated (NMManager *manager,
|
||||
NMConnection *connection,
|
||||
NMConnectionType connection_type,
|
||||
gpointer user_data)
|
||||
{
|
||||
NMPolicy *policy = (NMPolicy *) user_data;
|
||||
|
||||
schedule_change_check (policy);
|
||||
}
|
||||
|
||||
static void
|
||||
connection_removed (NMManager *manager,
|
||||
NMConnection *connection,
|
||||
|
|
@ -534,6 +545,9 @@ nm_policy_new (NMManager *manager)
|
|||
g_signal_connect (manager, "connection-added",
|
||||
G_CALLBACK (connection_added), policy);
|
||||
|
||||
g_signal_connect (manager, "connection-updated",
|
||||
G_CALLBACK (connection_updated), policy);
|
||||
|
||||
g_signal_connect (manager, "connection-removed",
|
||||
G_CALLBACK (connection_removed), policy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue