[X2Go-Commits] [libx2goclient] 07/13: src/x2goclient-network{, -ssh}.c: add G_PARAM_STATIC_STRINGS, they are all static anyway.
git-admin at x2go.org
git-admin at x2go.org
Sat Jun 27 14:42:21 CEST 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 37e0a13d2f11407c14807f5f98c3f73b72f57fc2
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Jun 26 13:02:30 2020 +0200
src/x2goclient-network{,-ssh}.c: add G_PARAM_STATIC_STRINGS, they are all static anyway.
---
src/x2goclient-network-ssh.c | 4 ++--
src/x2goclient-network.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index 80d523f..eb30163 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -146,13 +146,13 @@ static void x2goclient_network_ssh_class_init (X2GoClientNetworkSSHClass *klass)
_("The OpenSSH client version number, parsed in a custom "
"structure."),
X2GOCLIENT_TYPE_OPENSSH_VERSION,
- G_PARAM_READABLE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
net_ssh_obj_properties[X2GO_NET_SSH_PROP_OPENSSH_BUGS] = g_param_spec_boxed ("openssh-bugs", _("Bug quirks structure for OpenSSH Client"),
_("A structure containing quirks bits for known OpenSSH Client "
"bugs."),
X2GOCLIENT_TYPE_OPENSSH_BUGS,
- G_PARAM_READABLE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
g_object_class_install_properties (object_class, X2GO_NET_SSH_N_PROPERTIES, net_ssh_obj_properties);
diff --git a/src/x2goclient-network.c b/src/x2goclient-network.c
index a1a4a70..36b27bc 100644
--- a/src/x2goclient-network.c
+++ b/src/x2goclient-network.c
@@ -97,18 +97,18 @@ static void x2goclient_network_class_init (X2GoClientNetworkClass *klass) {
_("String specification for the low-level socket network "
"connection. Updates the \"socket\" property."),
G_TYPE_GSTRING,
- G_PARAM_WRITABLE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE);
net_obj_properties[X2GO_NET_PROP_SOCKET] = g_param_spec_object ("socket", _("Low-level socket"),
_("Low-level socket for the network connection, the local "
"part will be used for local binding if specified."),
G_TYPE_SOCKET_ADDRESS,
- G_PARAM_READABLE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
net_obj_properties[X2GO_NET_PROP_OPTIONS] = g_param_spec_object ("options", _("Socket options"),
_("Specific socket options."),
X2GOCLIENT_TYPE_NETWORK_OPTIONS,
- G_PARAM_READWRITE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE);
GString *default_session_path = g_string_new (g_get_home_dir ());
g_string_append (default_session_path, "/.libx2goclient/");
@@ -117,7 +117,7 @@ static void x2goclient_network_class_init (X2GoClientNetworkClass *klass) {
"session data base path. SSH-related files will "
"land there."),
default_session_path->str,
- G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+ G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
g_boxed_free (G_TYPE_GSTRING, default_session_path);
default_session_path = NULL;
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list