diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-11-15 15:52:39 +0000 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2021-12-10 14:53:40 +0000 |
commit | 1f67ee985027156eef7bdc9b7ceef62cab456f70 (patch) | |
tree | 6ac3b6179f3a7beaa9dfa7ab1c0b7401806b2018 /gnome-session | |
parent | 7fb921a62de002deadcebb2db2f364e54e1b5ed0 (diff) | |
download | gnome-session-1f67ee985027156eef7bdc9b7ceef62cab456f70.tar.gz |
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>
Diffstat (limited to 'gnome-session')
-rw-r--r-- | gnome-session/gsm-autostart-app.c | 4 |
1 files 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); |