summaryrefslogtreecommitdiff
path: root/daemon/gdm-server.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-server.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-server.c')
-rw-r--r--daemon/gdm-server.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index aede6c53..7962de22 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -991,28 +991,28 @@ gdm_server_class_init (GdmServerClass *klass)
"name",
"name",
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_SEAT_ID,
g_param_spec_string ("display-seat-id",
"Seat ID",
"ID of the seat this display is running on",
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,
g_param_spec_string ("display-device",
"Display Device",
"Path to terminal display is running on",
NULL,
- G_PARAM_READABLE));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_AUTH_FILE,
g_param_spec_string ("auth-file",
"Authorization File",
"Path to X authorization file",
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_USER_NAME,
@@ -1020,21 +1020,21 @@ gdm_server_class_init (GdmServerClass *klass)
"user name",
"user name",
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_DISABLE_TCP,
g_param_spec_boolean ("disable-tcp",
NULL,
NULL,
TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_IS_INITIAL,
g_param_spec_boolean ("is-initial",
NULL,
NULL,
FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
}
static void