From 534b0360c1a7fa50f82e1941a43bd8311722d1ea Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 22 Aug 2016 13:40:36 +0200 Subject: [PATCH] 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. --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */