[gnome-session] client: Add G_PARAM_EXPLICIT_NOTIFY
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] client: Add G_PARAM_EXPLICIT_NOTIFY
- Date: Fri, 10 Dec 2021 14:53:56 +0000 (UTC)
commit 05a612523138481a8a26f86c8041208bc3db9cf7
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Nov 15 11:46:48 2021 +0000
client: Add G_PARAM_EXPLICIT_NOTIFY
To avoid duplicate change notifications from the `GsmClient` properties.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gnome-session/gsm-client.c | 6 +++---
1 file 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]