diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-22 13:40:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-22 16:25:32 +0200 |
commit | 0e1c7ede129d7fce65c5a3445ec4e630c0b7e639 (patch) | |
tree | 9524659fb0f4a2d7520c76a190372d90e150fd23 | |
parent | e9f96024ae0abc8530ed8bd63ee7e3a7e615f587 (diff) | |
download | NetworkManager-0e1c7ede129d7fce65c5a3445ec4e630c0b7e639.tar.gz |
device: emit NM_DEVICE_STATE_CHANGED signal by id
This saves a lookup of the ID by name. We already have the signal-id,
use it.
(cherry picked from commit 534b0360c1a7fa50f82e1941a43bd8311722d1ea)
-rw-r--r-- | src/devices/nm-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 44e22ff9c0..9d677e0a9d 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -11259,7 +11259,7 @@ _set_state_full (NMDevice *self, _notify (self, PROP_STATE); _notify (self, PROP_STATE_REASON); - g_signal_emit_by_name (self, NM_DEVICE_STATE_CHANGED, state, old_state, reason); + g_signal_emit (self, signals[STATE_CHANGED], 0, state, old_state, reason); /* Post-process the event after internal notification */ |