summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-08-22 13:40:36 +0200
committerThomas Haller <thaller@redhat.com>2016-08-22 13:42:19 +0200
commit534b0360c1a7fa50f82e1941a43bd8311722d1ea (patch)
tree7bcea69cdb4fccf07e2d154e829db274dfc2e61f
parent805925f9efbc910975104bebe1050f0c663b61f7 (diff)
downloadNetworkManager-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.c2
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 */