[gnome-session] client: Add G_PARAM_STATIC_STRINGS
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] client: Add G_PARAM_STATIC_STRINGS
- Date: Fri, 10 Dec 2021 14:53:56 +0000 (UTC)
commit 34fcd69c69f01ba829677e57b861586bbdeafd97
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Nov 15 11:45:48 2021 +0000
client: Add G_PARAM_STATIC_STRINGS
This should save a few string copies when registering the 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 19040c5c..0c0637d7 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_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
props[PROP_APP_ID] =
g_param_spec_string ("app-id",
"app-id",
"app-id",
"",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
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_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
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]