summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-11-15 11:46:48 +0000
committerRay Strode <halfline@gmail.com>2021-12-10 14:53:40 +0000
commit05a612523138481a8a26f86c8041208bc3db9cf7 (patch)
tree4c50a477885347ccbecd5fe5b9394e49fd38077a
parent34fcd69c69f01ba829677e57b861586bbdeafd97 (diff)
downloadgnome-session-05a612523138481a8a26f86c8041208bc3db9cf7.tar.gz
client: Add G_PARAM_EXPLICIT_NOTIFY
To avoid duplicate change notifications from the `GsmClient` properties. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r--gnome-session/gsm-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnome-session/gsm-client.c b/gnome-session/gsm-client.c
index 0c0637d7..ff7fd393 100644
--- a/gnome-session/gsm-client.c
+++ b/gnome-session/gsm-client.c
@@ -424,13 +424,13 @@ gsm_client_class_init (GsmClientClass *klass)
"startup-id",
"startup-id",
"",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_APP_ID] =
g_param_spec_string ("app-id",
"app-id",
"app-id",
"",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_STATUS] =
g_param_spec_uint ("status",
"status",
@@ -438,7 +438,7 @@ gsm_client_class_init (GsmClientClass *klass)
0,
G_MAXINT,
GSM_CLIENT_UNREGISTERED,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, G_N_ELEMENTS (props), props);
}