summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-auditor.c
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-12-25 15:20:41 +0100
committerRay Strode <halfline@gmail.com>2019-01-07 19:12:03 +0000
commit525333a7971cd693a44ac1c4ee74938b26da1e4b (patch)
tree8027bea293e106bfa049bf6265958f7ac023e2f7 /daemon/gdm-session-auditor.c
parentc98ea6a4dc807aaf261eab6025ba3c3e5662d51c (diff)
downloadgdm-525333a7971cd693a44ac1c4ee74938b26da1e4b.tar.gz
Use G_PARAM_STATIC_STRIGS on properties
This prevents strings from being unnecessarily copied.
Diffstat (limited to 'daemon/gdm-session-auditor.c')
-rw-r--r--daemon/gdm-session-auditor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/gdm-session-auditor.c b/daemon/gdm-session-auditor.c
index 548e54b9..5f569a9b 100644
--- a/daemon/gdm-session-auditor.c
+++ b/daemon/gdm-session-auditor.c
@@ -87,19 +87,19 @@ gdm_session_auditor_class_install_properties (GdmSessionAuditorClass *auditor_cl
param_spec = g_param_spec_string ("username", _("Username"),
_("The username"),
- NULL, G_PARAM_READWRITE);
+ NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_USERNAME, param_spec);
param_spec = g_param_spec_string ("hostname", _("Hostname"),
_("The hostname"),
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_HOSTNAME, param_spec);
param_spec = g_param_spec_string ("display-device", _("Display Device"),
_("The display device"),
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_DISPLAY_DEVICE, param_spec);
}