[vinagre/plugin] Setup the protocol name, avoiding a crash
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [vinagre/plugin] Setup the protocol name, avoiding a crash
- Date: Sun, 12 Jul 2009 21:53:13 +0000 (UTC)
commit 855b4687cec2049a4234e61deae2803dc5e2a770
Author: Jonh Wendell <jwendell gnome org>
Date: Sun Jul 12 18:11:36 2009 -0300
Setup the protocol name, avoiding a crash
plugins/vnc/vinagre-vnc-connection.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-connection.c b/plugins/vnc/vinagre-vnc-connection.c
index 6d18883..b4a4797 100644
--- a/plugins/vnc/vinagre-vnc-connection.c
+++ b/plugins/vnc/vinagre-vnc-connection.c
@@ -52,8 +52,12 @@ vinagre_vnc_connection_init (VinagreVncConnection *conn)
conn->priv->view_only = FALSE;
conn->priv->scaling = FALSE;
conn->priv->shared = -1;
+}
- vinagre_connection_set_protocol (VINAGRE_CONNECTION (conn), "vnc");
+static void
+vinagre_vnc_connection_constructed (GObject *object)
+{
+ vinagre_connection_set_protocol (VINAGRE_CONNECTION (object), "vnc");
}
static void
@@ -211,6 +215,7 @@ vinagre_vnc_connection_class_init (VinagreVncConnectionClass *klass)
object_class->finalize = vinagre_vnc_connection_finalize;
object_class->set_property = vinagre_vnc_connection_set_property;
object_class->get_property = vinagre_vnc_connection_get_property;
+ object_class->constructed = vinagre_vnc_connection_constructed;
parent_class->impl_fill_writer = vnc_fill_writer;
parent_class->impl_parse_item = vnc_parse_item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]