diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-22 13:40:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-22 13:42:19 +0200 |
commit | 534b0360c1a7fa50f82e1941a43bd8311722d1ea (patch) | |
tree | 7bcea69cdb4fccf07e2d154e829db274dfc2e61f | |
parent | 805925f9efbc910975104bebe1050f0c663b61f7 (diff) | |
download | NetworkManager-534b0360c1a7fa50f82e1941a43bd8311722d1ea.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.
-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 */ |