auth-manager: emit signal by ID

It's more efficient, as it saves a lookup by name. Also,
it's more idiomatic to do it this way. I didn't find where
the signal gets emitted at first, because usually we don't emit
by name.
This commit is contained in:
Thomas Haller 2018-04-09 12:56:56 +02:00
parent 290d02536c
commit f8b74e19ea

View file

@ -353,7 +353,7 @@ static void
_emit_changed_signal (NMAuthManager *self)
{
_LOGD ("emit changed signal");
g_signal_emit_by_name (self, NM_AUTH_MANAGER_SIGNAL_CHANGED);
g_signal_emit (self, signals[CHANGED_SIGNAL], 0);
}
static void