mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 10:20:14 +01:00
Notify on device state change
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3489 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
30b85fa9f4
commit
e4d65bd92c
1 changed files with 4 additions and 0 deletions
|
|
@ -1733,10 +1733,14 @@ nm_device_state_changed (NMDevice *device, NMDeviceState state)
|
|||
|
||||
g_return_if_fail (NM_IS_DEVICE (device));
|
||||
|
||||
if (device->priv->state == state)
|
||||
return;
|
||||
|
||||
iface = nm_device_get_iface (device);
|
||||
old_state = device->priv->state;
|
||||
device->priv->state = state;
|
||||
|
||||
g_object_notify (G_OBJECT (device), NM_DEVICE_INTERFACE_STATE);
|
||||
g_signal_emit_by_name (device, "state-changed", state);
|
||||
|
||||
switch (state) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue