summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-01-19 20:14:25 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2011-01-19 20:14:25 +0100
commitad8c05306c796d8bd95cff76da6cdd31994f7bd7 (patch)
tree8ed439589945fed78b487abef75ea1b6e6592392
parenta21d33a82d510ad85d87f96637818b5b5cde939a (diff)
gtk: default construction value in property parameter
-rw-r--r--gtk/spice-session.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index 93b6fbc..c6df211 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -116,8 +116,6 @@ static void spice_session_init(SpiceSession *session)
s = session->priv = SPICE_SESSION_GET_PRIVATE(session);
memset(s, 0, sizeof(*s));
- s->host = strdup("localhost");
-
ring_init(&s->channels);
}
@@ -333,7 +331,7 @@ static void spice_session_class_init(SpiceSessionClass *klass)
g_param_spec_string("host",
"Host",
"Remote host",
- NULL,
+ "localhost",
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_STATIC_NAME |