[gnome-session] autostart-app: Add G_PARAM_STATIC_STRINGS
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] autostart-app: Add G_PARAM_STATIC_STRINGS
- Date: Fri, 10 Dec 2021 14:53:57 +0000 (UTC)
commit 1f67ee985027156eef7bdc9b7ceef62cab456f70
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Nov 15 15:52:39 2021 +0000
autostart-app: 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-autostart-app.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index 18815f62..c407562e 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -1471,14 +1471,14 @@ gsm_autostart_app_class_init (GsmAutostartAppClass *klass)
"Desktop filename",
"Freedesktop .desktop file",
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
props[PROP_MASK_SYSTEMD] =
g_param_spec_boolean ("mask-systemd",
"Mask if systemd started",
"Mask if GNOME systemd flag is set in desktop file",
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 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]