[vinagre/ssh: 3/7] Delay the emission of the signal 'initialized'.
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre/ssh: 3/7] Delay the emission of the signal 'initialized'.
- Date: Sat, 1 Aug 2009 13:37:21 +0000 (UTC)
commit 1185f6fcea4a4c09cd470afd6bf8abad11be3609
Author: Jonh Wendell <jwendell gnome org>
Date: Sat Aug 1 10:27:11 2009 -0300
Delay the emission of the signal 'initialized'.
Since we can't emit it at construction time.
plugins/ssh/vinagre-ssh-tab.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/ssh/vinagre-ssh-tab.c b/plugins/ssh/vinagre-ssh-tab.c
index b312ebe..d32bc34 100644
--- a/plugins/ssh/vinagre-ssh-tab.c
+++ b/plugins/ssh/vinagre-ssh-tab.c
@@ -56,6 +56,13 @@ ssh_tab_get_screenshot (VinagreTab *tab)
return NULL;
}
+static gboolean
+emit_delayed_signal (GObject *object)
+{
+ g_signal_emit_by_name (object, "tab-initialized");
+ return FALSE;
+}
+
static void
vinagre_ssh_tab_constructed (GObject *object)
{
@@ -83,7 +90,7 @@ vinagre_ssh_tab_constructed (GObject *object)
vinagre_tab_add_recent_used (tab);
vinagre_tab_set_state (tab, VINAGRE_TAB_STATE_CONNECTED);
- g_signal_emit_by_name (G_OBJECT (tab), "tab-initialized");
+ g_idle_add ((GSourceFunc)emit_delayed_signal, object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]