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.
This commit is contained in:
Thomas Haller 2016-08-22 13:40:36 +02:00
parent 805925f9ef
commit 534b0360c1

View file

@ -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 */