[vinagre] Call parent's constructor
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Call parent's constructor
- Date: Thu, 13 Aug 2009 14:54:20 +0000 (UTC)
commit 4c017fd0fee679729c2ff23ef3968ce09e0dbd57
Author: Jonh Wendell <jwendell gnome org>
Date: Thu Aug 13 09:42:07 2009 -0300
Call parent's constructor
plugins/ssh/vinagre-ssh-tab.c | 3 +++
plugins/vnc/vinagre-vnc-tab.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/ssh/vinagre-ssh-tab.c b/plugins/ssh/vinagre-ssh-tab.c
index 3ee82e6..fba61b1 100644
--- a/plugins/ssh/vinagre-ssh-tab.c
+++ b/plugins/ssh/vinagre-ssh-tab.c
@@ -73,6 +73,9 @@ vinagre_ssh_tab_constructed (GObject *object)
VinagreSshTab *ssh_tab = VINAGRE_SSH_TAB (object);
VinagreTab *tab = VINAGRE_TAB (object);
+ if (G_OBJECT_CLASS (vinagre_ssh_tab_parent_class)->constructed)
+ G_OBJECT_CLASS (vinagre_ssh_tab_parent_class)->constructed (object);
+
arg = g_new (gchar *, 5);
arg[0] = g_strdup ("ssh");
arg[1] = g_strdup (vinagre_connection_get_host (vinagre_tab_get_conn (tab)));
diff --git a/plugins/vnc/vinagre-vnc-tab.c b/plugins/vnc/vinagre-vnc-tab.c
index 2218c53..2b0909c 100644
--- a/plugins/vnc/vinagre-vnc-tab.c
+++ b/plugins/vnc/vinagre-vnc-tab.c
@@ -185,6 +185,9 @@ vinagre_vnc_tab_dispose (GObject *object)
static void
vinagre_vnc_tab_constructed (GObject *object)
{
+ if (G_OBJECT_CLASS (vinagre_vnc_tab_parent_class)->constructed)
+ G_OBJECT_CLASS (vinagre_vnc_tab_parent_class)->constructed (object);
+
open_vnc (VINAGRE_VNC_TAB (object));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]