Commit 525333a7 authored by Niels De Graef's avatar Niels De Graef Committed by Ray Strode

Use G_PARAM_STATIC_STRIGS on properties

This prevents strings from being unnecessarily copied.
parent c98ea6a4
Pipeline #49703 passed with stage
in 4 minutes and 19 seconds
...@@ -203,14 +203,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass) ...@@ -203,14 +203,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass)
"address", "address",
"address", "address",
GDM_TYPE_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, g_object_class_install_property (object_class,
PROP_DESCRIPTION, PROP_DESCRIPTION,
g_param_spec_string ("description", g_param_spec_string ("description",
"description", "description",
"description", "description",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_KIND, PROP_KIND,
...@@ -220,14 +220,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass) ...@@ -220,14 +220,14 @@ gdm_chooser_host_class_init (GdmChooserHostClass *klass)
0, 0,
G_MAXINT, G_MAXINT,
0, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_WILLING, PROP_WILLING,
g_param_spec_boolean ("willing", g_param_spec_boolean ("willing",
"willing", "willing",
"willing", "willing",
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -182,7 +182,7 @@ gdm_host_chooser_dialog_class_init (GdmHostChooserDialogClass *klass) ...@@ -182,7 +182,7 @@ gdm_host_chooser_dialog_class_init (GdmHostChooserDialogClass *klass)
0, 0,
G_MAXINT, G_MAXINT,
0, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -774,7 +774,7 @@ gdm_host_chooser_widget_class_init (GdmHostChooserWidgetClass *klass) ...@@ -774,7 +774,7 @@ gdm_host_chooser_widget_class_init (GdmHostChooserWidgetClass *klass)
0, 0,
G_MAXINT, G_MAXINT,
0, 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", signals [HOST_ACTIVATED] = g_signal_new ("host-activated",
G_TYPE_FROM_CLASS (object_class), G_TYPE_FROM_CLASS (object_class),
......
...@@ -397,7 +397,7 @@ gdm_settings_desktop_backend_class_init (GdmSettingsDesktopBackendClass *klass) ...@@ -397,7 +397,7 @@ gdm_settings_desktop_backend_class_init (GdmSettingsDesktopBackendClass *klass)
"File Name", "File Name",
"The name of the configuration file", "The name of the configuration file",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -209,7 +209,7 @@ gdm_display_factory_class_init (GdmDisplayFactoryClass *klass) ...@@ -209,7 +209,7 @@ gdm_display_factory_class_init (GdmDisplayFactoryClass *klass)
"display store", "display store",
"display store", "display store",
GDM_TYPE_DISPLAY_STORE, GDM_TYPE_DISPLAY_STORE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -1246,14 +1246,14 @@ gdm_display_class_init (GdmDisplayClass *klass) ...@@ -1246,14 +1246,14 @@ gdm_display_class_init (GdmDisplayClass *klass)
"id", "id",
"id", "id",
NULL, 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, g_object_class_install_property (object_class,
PROP_REMOTE_HOSTNAME, PROP_REMOTE_HOSTNAME,
g_param_spec_string ("remote-hostname", g_param_spec_string ("remote-hostname",
"remote-hostname", "remote-hostname",
"remote-hostname", "remote-hostname",
NULL, 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, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_NUMBER, PROP_X11_DISPLAY_NUMBER,
g_param_spec_int ("x11-display-number", g_param_spec_int ("x11-display-number",
...@@ -1262,70 +1262,70 @@ gdm_display_class_init (GdmDisplayClass *klass) ...@@ -1262,70 +1262,70 @@ gdm_display_class_init (GdmDisplayClass *klass)
-1, -1,
G_MAXINT, G_MAXINT,
-1, -1,
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, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_NAME, PROP_X11_DISPLAY_NAME,
g_param_spec_string ("x11-display-name", g_param_spec_string ("x11-display-name",
"x11-display-name", "x11-display-name",
"x11-display-name", "x11-display-name",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_SEAT_ID, PROP_SEAT_ID,
g_param_spec_string ("seat-id", g_param_spec_string ("seat-id",
"seat id", "seat id",
"seat id", "seat id",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_SESSION_ID, PROP_SESSION_ID,
g_param_spec_string ("session-id", g_param_spec_string ("session-id",
"session id", "session id",
"session id", "session id",
NULL, NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_SESSION_CLASS, PROP_SESSION_CLASS,
g_param_spec_string ("session-class", g_param_spec_string ("session-class",
NULL, NULL,
NULL, NULL,
"greeter", "greeter",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_SESSION_TYPE, PROP_SESSION_TYPE,
g_param_spec_string ("session-type", g_param_spec_string ("session-type",
NULL, NULL,
NULL, NULL,
NULL, NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_IS_INITIAL, PROP_IS_INITIAL,
g_param_spec_boolean ("is-initial", g_param_spec_boolean ("is-initial",
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_ALLOW_TIMED_LOGIN, PROP_ALLOW_TIMED_LOGIN,
g_param_spec_boolean ("allow-timed-login", g_param_spec_boolean ("allow-timed-login",
NULL, NULL,
NULL, NULL,
TRUE, TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_X11_COOKIE, PROP_X11_COOKIE,
g_param_spec_string ("x11-cookie", g_param_spec_string ("x11-cookie",
"cookie", "cookie",
"cookie", "cookie",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_X11_AUTHORITY_FILE, PROP_X11_AUTHORITY_FILE,
g_param_spec_string ("x11-authority-file", g_param_spec_string ("x11-authority-file",
"authority file", "authority file",
"authority file", "authority file",
NULL, NULL,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_IS_LOCAL, PROP_IS_LOCAL,
...@@ -1333,35 +1333,35 @@ gdm_display_class_init (GdmDisplayClass *klass) ...@@ -1333,35 +1333,35 @@ gdm_display_class_init (GdmDisplayClass *klass)
NULL, NULL,
NULL, NULL,
TRUE, TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_IS_CONNECTED, PROP_IS_CONNECTED,
g_param_spec_boolean ("is-connected", g_param_spec_boolean ("is-connected",
NULL, NULL,
NULL, NULL,
TRUE, TRUE,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_HAVE_EXISTING_USER_ACCOUNTS, PROP_HAVE_EXISTING_USER_ACCOUNTS,
g_param_spec_boolean ("have-existing-user-accounts", g_param_spec_boolean ("have-existing-user-accounts",
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_DOING_INITIAL_SETUP, PROP_DOING_INITIAL_SETUP,
g_param_spec_boolean ("doing-initial-setup", g_param_spec_boolean ("doing-initial-setup",
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_LAUNCH_ENVIRONMENT, PROP_LAUNCH_ENVIRONMENT,
g_param_spec_object ("launch-environment", g_param_spec_object ("launch-environment",
NULL, NULL,
NULL, NULL,
GDM_TYPE_LAUNCH_ENVIRONMENT, GDM_TYPE_LAUNCH_ENVIRONMENT,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_STATUS, PROP_STATUS,
g_param_spec_int ("status", g_param_spec_int ("status",
...@@ -1370,7 +1370,7 @@ gdm_display_class_init (GdmDisplayClass *klass) ...@@ -1370,7 +1370,7 @@ gdm_display_class_init (GdmDisplayClass *klass)
-1, -1,
G_MAXINT, G_MAXINT,
GDM_DISPLAY_UNMANAGED, GDM_DISPLAY_UNMANAGED,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -715,84 +715,84 @@ gdm_launch_environment_class_init (GdmLaunchEnvironmentClass *klass) ...@@ -715,84 +715,84 @@ gdm_launch_environment_class_init (GdmLaunchEnvironmentClass *klass)
"verification mode", "verification mode",
GDM_TYPE_SESSION_VERIFICATION_MODE, GDM_TYPE_SESSION_VERIFICATION_MODE,
GDM_SESSION_VERIFICATION_MODE_LOGIN, GDM_SESSION_VERIFICATION_MODE_LOGIN,
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, g_object_class_install_property (object_class,
PROP_SESSION_TYPE, PROP_SESSION_TYPE,
g_param_spec_string ("session-type", g_param_spec_string ("session-type",
NULL, NULL,
NULL, NULL,
NULL, NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_SESSION_MODE, PROP_SESSION_MODE,
g_param_spec_string ("session-mode", g_param_spec_string ("session-mode",
NULL, NULL,
NULL, NULL,
NULL, NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_NAME, PROP_X11_DISPLAY_NAME,
g_param_spec_string ("x11-display-name", g_param_spec_string ("x11-display-name",
"name", "name",
"name", "name",
NULL, 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, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_SEAT_ID, PROP_X11_DISPLAY_SEAT_ID,
g_param_spec_string ("x11-display-seat-id", g_param_spec_string ("x11-display-seat-id",
"seat id", "seat id",
"seat id", "seat id",
NULL, 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, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_HOSTNAME, PROP_X11_DISPLAY_HOSTNAME,
g_param_spec_string ("x11-display-hostname", g_param_spec_string ("x11-display-hostname",
"hostname", "hostname",
"hostname", "hostname",
NULL, 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, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_DEVICE, PROP_X11_DISPLAY_DEVICE,
g_param_spec_string ("x11-display-device", g_param_spec_string ("x11-display-device",
"device", "device",
"device", "device",
NULL, NULL,
G_PARAM_READWRITE)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_X11_DISPLAY_IS_LOCAL, PROP_X11_DISPLAY_IS_LOCAL,
g_param_spec_boolean ("x11-display-is-local", g_param_spec_boolean ("x11-display-is-local",
"is local", "is local",
"is local", "is local",
FALSE, FALSE,
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, g_object_class_install_property (object_class,
PROP_X11_AUTHORITY_FILE, PROP_X11_AUTHORITY_FILE,
g_param_spec_string ("x11-authority-file", g_param_spec_string ("x11-authority-file",
"authority file", "authority file",
"authority file", "authority file",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_USER_NAME, PROP_USER_NAME,
g_param_spec_string ("user-name", g_param_spec_string ("user-name",
"user name", "user name",
"user name", "user name",
GDM_USERNAME, GDM_USERNAME,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_RUNTIME_DIR, PROP_RUNTIME_DIR,
g_param_spec_string ("runtime-dir", g_param_spec_string ("runtime-dir",
"runtime dir", "runtime dir",
"runtime dir", "runtime dir",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_COMMAND, PROP_COMMAND,
g_param_spec_string ("command", g_param_spec_string ("command",
"command", "command",
"command", "command",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
signals [OPENED] = signals [OPENED] =
g_signal_new ("opened", g_signal_new ("opened",
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
......
...@@ -2649,7 +2649,7 @@ gdm_manager_class_init (GdmManagerClass *klass) ...@@ -2649,7 +2649,7 @@ gdm_manager_class_init (GdmManagerClass *klass)
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_type_class_add_private (klass, sizeof (GdmManagerPrivate)); g_type_class_add_private (klass, sizeof (GdmManagerPrivate));
} }
......
...@@ -991,28 +991,28 @@ gdm_server_class_init (GdmServerClass *klass) ...@@ -991,28 +991,28 @@ gdm_server_class_init (GdmServerClass *klass)
"name", "name",
"name", "name",
NULL, 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, g_object_class_install_property (object_class,
PROP_DISPLAY_SEAT_ID, PROP_DISPLAY_SEAT_ID,
g_param_spec_string ("display-seat-id", g_param_spec_string ("display-seat-id",
"Seat ID", "Seat ID",
"ID of the seat this display is running on", "ID of the seat this display is running on",
NULL, 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, g_object_class_install_property (object_class,
PROP_DISPLAY_DEVICE, PROP_DISPLAY_DEVICE,
g_param_spec_string ("display-device", g_param_spec_string ("display-device",
"Display Device", "Display Device",
"Path to terminal display is running on", "Path to terminal display is running on",
NULL, NULL,
G_PARAM_READABLE)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_AUTH_FILE, PROP_AUTH_FILE,
g_param_spec_string ("auth-file", g_param_spec_string ("auth-file",
"Authorization File", "Authorization File",
"Path to X authorization file", "Path to X authorization file",
NULL, 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, g_object_class_install_property (object_class,
PROP_USER_NAME, PROP_USER_NAME,
...@@ -1020,21 +1020,21 @@ gdm_server_class_init (GdmServerClass *klass) ...@@ -1020,21 +1020,21 @@ gdm_server_class_init (GdmServerClass *klass)
"user name", "user name",
"user name", "user name",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_DISABLE_TCP, PROP_DISABLE_TCP,
g_param_spec_boolean ("disable-tcp", g_param_spec_boolean ("disable-tcp",
NULL, NULL,
NULL, NULL,
TRUE, TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_IS_INITIAL, PROP_IS_INITIAL,
g_param_spec_boolean ("is-initial", g_param_spec_boolean ("is-initial",
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
} }
static void static void
......
...@@ -87,19 +87,19 @@ gdm_session_auditor_class_install_properties (GdmSessionAuditorClass *auditor_cl ...@@ -87,19 +87,19 @@ gdm_session_auditor_class_install_properties (GdmSessionAuditorClass *auditor_cl
param_spec = g_param_spec_string ("username", _("Username"), param_spec = g_param_spec_string ("username", _("Username"),
_("The 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); g_object_class_install_property (object_class, PROP_USERNAME, param_spec);
param_spec = g_param_spec_string ("hostname", _("Hostname"), param_spec = g_param_spec_string ("hostname", _("Hostname"),
_("The hostname"), _("The hostname"),
NULL, 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); g_object_class_install_property (object_class, PROP_HOSTNAME, param_spec);
param_spec = g_param_spec_string ("display-device", _("Display Device"), param_spec = g_param_spec_string ("display-device", _("Display Device"),
_("The display device"), _("The display device"),
NULL, 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); g_object_class_install_property (object_class, PROP_DISPLAY_DEVICE, param_spec);
} }
......
...@@ -90,17 +90,17 @@ gdm_session_settings_class_install_properties (GdmSessionSettingsClass *settings ...@@ -90,17 +90,17 @@ gdm_session_settings_class_install_properties (GdmSessionSettingsClass *settings
param_spec = g_param_spec_string ("session-name", "Session Name", param_spec = g_param_spec_string ("session-name", "Session Name",
"The name of the session", "The name of the session",
NULL, G_PARAM_READWRITE); NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_SESSION_NAME, param_spec); g_object_class_install_property (object_class, PROP_SESSION_NAME, param_spec);
param_spec = g_param_spec_string ("language-name", "Language Name", param_spec = g_param_spec_string ("language-name", "Language Name",
"The name of the language", "The name of the language",
NULL, 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_LANGUAGE_NAME, param_spec); g_object_class_install_property (object_class, PROP_LANGUAGE_NAME, param_spec);
param_spec = g_param_spec_boolean ("is-loaded", NULL, NULL, param_spec = g_param_spec_boolean ("is-loaded", NULL, NULL,
FALSE, G_PARAM_READABLE); FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_IS_LOADED, param_spec); g_object_class_install_property (object_class, PROP_IS_LOADED, param_spec);
} }
......
...@@ -503,20 +503,20 @@ gdm_session_worker_job_class_init (GdmSessionWorkerJobClass *klass) ...@@ -503,20 +503,20 @@ gdm_session_worker_job_class_init (GdmSessionWorkerJobClass *klass)
"server address", "server address",
"server address", "server address",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_FOR_REAUTH, PROP_FOR_REAUTH,
g_param_spec_boolean ("for-reauth", g_param_spec_boolean ("for-reauth",
"for reauth", "for reauth",
"for reauth", "for reauth",
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_ENVIRONMENT, PROP_ENVIRONMENT,
g_param_spec_pointer ("environment", g_param_spec_pointer ("environment",
"environment", "environment",
"environment", "environment",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
signals [STARTED] = signals [STARTED] =
g_signal_new ("started", g_signal_new ("started",
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
......
...@@ -3462,7 +3462,7 @@ gdm_session_worker_class_init (GdmSessionWorkerClass *klass) ...@@ -3462,7 +3462,7 @@ gdm_session_worker_class_init (GdmSessionWorkerClass *klass)
"server address", "server address",
"server address", "server address",
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, g_object_class_install_property (object_class,
PROP_IS_REAUTH_SESSION, PROP_IS_REAUTH_SESSION,
...@@ -3470,7 +3470,7 @@ gdm_session_worker_class_init (GdmSessionWorkerClass *klass) ...@@ -3470,7 +3470,7 @@ gdm_session_worker_class_init (GdmSessionWorkerClass *klass)
"is reauth session", "is reauth session",