[calls/wip/ui-manage-accounts: 9/26] credentials: Rename signal from account-updated to credentials-updated
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls/wip/ui-manage-accounts: 9/26] credentials: Rename signal from account-updated to credentials-updated
- Date: Fri, 16 Jul 2021 12:16:34 +0000 (UTC)
commit 63e9bd97011b94730031c4312e02ff08c13101ec
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date: Tue Jun 29 16:06:19 2021 +0200
credentials: Rename signal from account-updated to credentials-updated
To be more in line with CallsAccount and CallsCredentials.
plugins/sip/calls-sip-origin.c | 8 ++++----
src/calls-credentials.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 847317bc..5053996a 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -336,7 +336,7 @@ update_nua (CallsSipOrigin *self)
}
static void
-update_credentials (CallsSipOrigin *self)
+on_credentials_updated (CallsSipOrigin *self)
{
g_autofree char *protocol = NULL;
@@ -1059,7 +1059,7 @@ calls_sip_origin_set_property (GObject *object,
switch (property_id) {
case PROP_ACC_CREDENTIALS:
self->credentials = g_value_get_object (value);
- update_credentials (self);
+ on_credentials_updated (self);
break;
case PROP_ACC_DIRECT:
@@ -1141,8 +1141,8 @@ calls_sip_origin_constructed (GObject *object)
self->media_manager = calls_sip_media_manager_default ();
- g_signal_connect_swapped (self->credentials, "account-updated",
- (GCallback) update_credentials, self);
+ g_signal_connect_swapped (self->credentials, "credentials-updated",
+ G_CALLBACK (on_credentials_updated), self);
G_OBJECT_CLASS (calls_sip_origin_parent_class)->constructed (object);
}
diff --git a/src/calls-credentials.c b/src/calls-credentials.c
index 60ce9f6e..1c321c04 100644
--- a/src/calls-credentials.c
+++ b/src/calls-credentials.c
@@ -52,7 +52,7 @@ enum {
static GParamSpec *props[PROP_LAST_PROP];
enum {
- SIGNAL_ACCOUNT_UPDATED,
+ SIGNAL_CREDENTIALS_UPDATED,
SIGNAL_LAST_SIGNAL,
};
static guint signals[SIGNAL_LAST_SIGNAL];
@@ -323,8 +323,8 @@ calls_credentials_class_init (CallsCredentialsClass *klass)
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
- signals[SIGNAL_ACCOUNT_UPDATED] =
- g_signal_new ("account-updated",
+ signals[SIGNAL_CREDENTIALS_UPDATED] =
+ g_signal_new ("credentials-updated",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
@@ -433,7 +433,7 @@ calls_credentials_update_from_keyfile (CallsCredentials *self,
g_debug ("Updated credentials with name %s", name);
- g_signal_emit (self, signals[SIGNAL_ACCOUNT_UPDATED], 0);
+ g_signal_emit (self, signals[SIGNAL_CREDENTIALS_UPDATED], 0);
return TRUE;
}
@@ -564,7 +564,7 @@ calls_credentials_update_from_credentials (CallsCredentials *self,
self->port = other->port;
- g_signal_emit (self, signals[SIGNAL_ACCOUNT_UPDATED], 0);
+ g_signal_emit (self, signals[SIGNAL_CREDENTIALS_UPDATED], 0);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]