From 525333a7971cd693a44ac1c4ee74938b26da1e4b Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Tue, 25 Dec 2018 15:20:41 +0100 Subject: Use G_PARAM_STATIC_STRIGS on properties This prevents strings from being unnecessarily copied. --- chooser/gdm-chooser-host.c | 8 ++++---- chooser/gdm-host-chooser-dialog.c | 2 +- chooser/gdm-host-chooser-widget.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'chooser') diff --git a/chooser/gdm-chooser-host.c b/chooser/gdm-chooser-host.c index 4c23ffc4..2491af1b 100644 --- a/chooser/gdm-chooser-host.c +++ b/chooser/gdm-chooser-host.c @@ -203,14 +203,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass) "address", "address", GDM_TYPE_ADDRESS, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_DESCRIPTION, g_param_spec_string ("description", "description", "description", 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_KIND, @@ -220,14 +220,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass) 0, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_WILLING, g_param_spec_boolean ("willing", "willing", "willing", FALSE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); } static void diff --git a/chooser/gdm-host-chooser-dialog.c b/chooser/gdm-host-chooser-dialog.c index 288c72ad..3f7e2b7a 100644 --- a/chooser/gdm-host-chooser-dialog.c +++ b/chooser/gdm-host-chooser-dialog.c @@ -182,7 +182,7 @@ gdm_host_chooser_dialog_class_init (GdmHostChooserDialogClass *klass) 0, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); } static void diff --git a/chooser/gdm-host-chooser-widget.c b/chooser/gdm-host-chooser-widget.c index f9bacc12..0b67c587 100644 --- a/chooser/gdm-host-chooser-widget.c +++ b/chooser/gdm-host-chooser-widget.c @@ -774,7 +774,7 @@ gdm_host_chooser_widget_class_init (GdmHostChooserWidgetClass *klass) 0, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); signals [HOST_ACTIVATED] = g_signal_new ("host-activated", G_TYPE_FROM_CLASS (object_class), -- cgit v1.2.1