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.
This commit is contained in:
Georges Basile Stavracas Neto
2020-04-01 21:06:50 -03:00
parent 90597ca128
commit 78248bec5e
+7 -7
View File
@@ -355,43 +355,43 @@ gcal_calendar_class_init (GcalCalendarClass *klass)
"Calendar client", "Calendar client",
"Calendar client", "Calendar client",
E_TYPE_CAL_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", properties[PROP_COLOR] = g_param_spec_boxed ("color",
"Color", "Color",
"Color of the calendar", "Color of the calendar",
GDK_TYPE_RGBA, 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", properties[PROP_ID] = g_param_spec_string ("id",
"Identifier", "Identifier",
"Unique identifier of the calendar", "Unique identifier of the calendar",
NULL, 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", properties[PROP_NAME] = g_param_spec_string ("name",
"Name", "Name",
"Name of the calendar", "Name of the calendar",
NULL, 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", properties[PROP_READ_ONLY] = g_param_spec_boolean ("read-only",
"Read-only", "Read-only",
"Whether the calendar is read-only or not", "Whether the calendar is read-only or not",
FALSE, 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", properties[PROP_SOURCE] = g_param_spec_object ("source",
"Source", "Source",
"Source", "Source",
E_TYPE_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", properties[PROP_VISIBLE] = g_param_spec_boolean ("visible",
"Visible", "Visible",
"Whether the calendar is visible", "Whether the calendar is visible",
FALSE, 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); g_object_class_install_properties (object_class, N_PROPS, properties);
} }