[gnome-control-center] datetime: Fix warning running callback before objects are created
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix warning running callback before objects are created
- Date: Tue, 9 Oct 2018 20:36:30 +0000 (UTC)
commit 216736b8dd654c82bedd46ae4f635d36bbe1bcec
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Oct 9 09:23:39 2018 +1300
datetime: Fix warning running callback before objects are created
The following warning occurs when the datetime panel is created:
(gnome-control-center:3173): GLib-GIO-CRITICAL **: 09:18:38.531: g_settings_get_value: assertion
'G_IS_SETTINGS (settings)' failed
This is due to the callback being called before the settings object is created
panels/datetime/cc-datetime-panel.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 0fe456253..238cb2146 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -1215,7 +1215,6 @@ cc_date_time_panel_init (CcDateTimePanel *self)
{
g_signal_connect (self->permission, "notify",
G_CALLBACK (on_permission_changed), self);
- on_permission_changed (self->permission, NULL, self);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]