[calls] settings: Chain up to parents constructed() early
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] settings: Chain up to parents constructed() early
- Date: Tue, 21 Dec 2021 14:33:07 +0000 (UTC)
commit a63023e315f4f91a65bdee00538b923f8bb35e3c
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Nov 23 14:25:06 2021 +0100
settings: Chain up to parents constructed() early
Not strictly necessary since we're not depending on anything the parents
constructed() might be doing, but it's a good practice.
src/calls-settings.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calls-settings.c b/src/calls-settings.c
index 2e048c87..6eb12955 100644
--- a/src/calls-settings.c
+++ b/src/calls-settings.c
@@ -115,14 +115,14 @@ calls_settings_constructed (GObject *object)
{
CallsSettings *self = CALLS_SETTINGS (object);
+ G_OBJECT_CLASS (calls_settings_parent_class)->constructed (object);
+
g_settings_bind (self->settings, "auto-use-default-origins",
self, "auto-use-default-origins", G_SETTINGS_BIND_DEFAULT);
g_settings_bind (self->settings, "country-code",
self, "country-code", G_SETTINGS_BIND_DEFAULT);
g_settings_bind (self->settings, "autoload-plugins",
self, "autoload-plugins", G_SETTINGS_BIND_DEFAULT);
-
- G_OBJECT_CLASS (calls_settings_parent_class)->constructed (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]