Commit ddeb5313 authored by Mihai Moldovan's avatar Mihai Moldovan
Browse files

src/x2goclient-network.c: add getter and setters for {write,read}-only properties.

Even though the glib system will disallow access to these properties, it
doesn't hurt to have the infrastructure available in case this ever
changes.
parent 3d8d50f0
......@@ -212,6 +212,10 @@ static void x2goclient_network_set_property (GObject * const object, guint prop_
priv->socket_spec = g_value_dup_boxed (value);
priv->socket = x2goclient_network_parse_sockspec (self, priv->socket_spec);
break;
case (X2GO_NET_PROP_SOCKET):
g_clear_object (&(priv->socket));
priv->socket = g_value_dup_object (value);
break;
case (X2GO_NET_PROP_OPTIONS):
g_clear_object (&(priv->options));
priv->options = g_value_dup_object (value);
......@@ -235,6 +239,9 @@ static void x2goclient_network_get_property (GObject * const object, const guint
X2GoClientNetworkPrivate *priv = x2goclient_network_get_instance_private (self);
switch (prop_id) {
case (X2GO_NET_PROP_SOCKET_SPEC):
g_value_set_boxed (value, priv->socket_spec);
break;
case (X2GO_NET_PROP_SOCKET):
g_value_set_object (value, priv->socket);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment