[gnome-calendar/gbsneto/timeline: 11/36] calendar: Mark all properties as G_PARAM_EXPLICIT_NOTIFY
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/timeline: 11/36] calendar: Mark all properties as G_PARAM_EXPLICIT_NOTIFY
- Date: Thu, 2 Apr 2020 00:07:41 +0000 (UTC)
commit 78248bec5ece57e7dc251a0b0692ceb9c2187a68
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 24 12:55:50 2020 -0300
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]