From 78248bec5ece57e7dc251a0b0692ceb9c2187a68 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 24 Mar 2020 12:55:50 -0300 Subject: [PATCH] calendar: Mark all properties as G_PARAM_EXPLICIT_NOTIFY We explicitly notify them all, so mark them as such. Otherwise, GLib notifies it when changing these properties through bindings and such. --- src/core/gcal-calendar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/gcal-calendar.c b/src/core/gcal-calendar.c index 5e66eedb..07f0212b 100644 --- a/src/core/gcal-calendar.c +++ b/src/core/gcal-calendar.c @@ -355,43 +355,43 @@ gcal_calendar_class_init (GcalCalendarClass *klass) "Calendar client", "Calendar client", E_TYPE_CAL_CLIENT, - G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_COLOR] = g_param_spec_boxed ("color", "Color", "Color of the calendar", GDK_TYPE_RGBA, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_ID] = g_param_spec_string ("id", "Identifier", "Unique identifier of the calendar", NULL, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_NAME] = g_param_spec_string ("name", "Name", "Name of the calendar", NULL, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_READ_ONLY] = g_param_spec_boolean ("read-only", "Read-only", "Whether the calendar is read-only or not", FALSE, - G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_SOURCE] = g_param_spec_object ("source", "Source", "Source", E_TYPE_SOURCE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); properties[PROP_VISIBLE] = g_param_spec_boolean ("visible", "Visible", "Whether the calendar is visible", FALSE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); g_object_class_install_properties (object_class, N_PROPS, properties); }