aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-07-13 15:31:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 09:29:59 +0800
commit75de89ef04f0bd69fe5d33919e281bdb8c30bd9e (patch)
treefe6acd687988f6972c362ee8991dce83b14c8a78 /modules
parent9849889089a50d0e7a6efc37037956af83abc358 (diff)
downloadgsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.gz
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.bz2
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.lz
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.xz
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.zst
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.zip
Make the update-actions work across tabs.
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-content.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 3cdcee2d01..acc2e4906d 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -70,6 +70,18 @@ mail_shell_content_dispose (GObject *object)
}
static void
+reconnect_changed_event (EMailReader *child, EMailReader *parent)
+{
+ g_signal_emit_by_name (parent, "changed");
+}
+
+static void
+reconnect_folder_loaded_event (EMailReader *child, EMailReader *parent)
+{
+ g_signal_emit_by_name (parent, "folder-loaded");
+}
+
+static void
mail_shell_content_constructed (GObject *object)
{
EMailShellContentPrivate *priv;
@@ -98,6 +110,12 @@ mail_shell_content_constructed (GObject *object)
E_MAIL_SHELL_CONTENT(object)->view = (EMailView *)widget;
gtk_container_add (GTK_CONTAINER (container), widget);
gtk_widget_show (widget);
+ g_signal_connect ( E_MAIL_READER(widget), "changed",
+ G_CALLBACK (reconnect_changed_event),
+ object);
+ g_signal_connect ( E_MAIL_READER (widget), "folder-loaded",
+ G_CALLBACK (reconnect_folder_loaded_event),
+ object);
}