summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-09 12:56:56 +0200
committerThomas Haller <thaller@redhat.com>2018-04-13 09:09:46 +0200
commitf8b74e19ea1e01781d22fccc6e96129d88e6814e (patch)
tree48b4584c7cc9659dfc79cd3bf14b042fe71ffb1e
parent290d02536c237cd14f187611e72e5fc0b52c81a7 (diff)
downloadNetworkManager-f8b74e19ea1e01781d22fccc6e96129d88e6814e.tar.gz
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.
-rw-r--r--src/nm-auth-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-auth-manager.c b/src/nm-auth-manager.c
index d1b8d91e1d..441c971f56 100644
--- a/src/nm-auth-manager.c
+++ b/src/nm-auth-manager.c
@@ -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