aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-19 00:17:04 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-19 00:20:16 +0800
commitd33ed726f9562015b65c27360b02be0dfad7c11b (patch)
treed9bf7a2e946012e64a985e825d070baa134602e8 /mail
parent59c61f49856291cc6cfd821533da16848d4a1e06 (diff)
downloadgsoc2013-evolution-d33ed726f9562015b65c27360b02be0dfad7c11b.tar.gz
gsoc2013-evolution-d33ed726f9562015b65c27360b02be0dfad7c11b.tar.zst
gsoc2013-evolution-d33ed726f9562015b65c27360b02be0dfad7c11b.zip
Update EMailBrowser actions when MessageList reloads.
There was never a bug filed for this, but some mailing list discussion: http://mail.gnome.org/archives/evolution-list/2011-August/msg00084.html
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-reader.c13
-rw-r--r--mail/e-mail-reader.h1
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index fad5415c5e..0408d9539b 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2828,6 +2828,15 @@ mail_reader_set_message (EMailReader *reader,
}
static void
+mail_reader_folder_loaded (EMailReader *reader)
+{
+ guint32 state;
+
+ state = e_mail_reader_check_state (reader);
+ e_mail_reader_update_actions (reader, state);
+}
+
+static void
mail_reader_update_actions (EMailReader *reader,
guint32 state)
{
@@ -3259,6 +3268,7 @@ e_mail_reader_default_init (EMailReaderInterface *interface)
interface->set_folder = mail_reader_set_folder;
interface->set_message = mail_reader_set_message;
interface->open_selected_mail = e_mail_reader_open_selected;
+ interface->folder_loaded = mail_reader_folder_loaded;
interface->update_actions = mail_reader_update_actions;
g_object_interface_install_property (
@@ -3302,7 +3312,8 @@ e_mail_reader_default_init (EMailReaderInterface *interface)
"folder-loaded",
G_OBJECT_CLASS_TYPE (interface),
G_SIGNAL_RUN_FIRST,
- 0, NULL, NULL,
+ G_STRUCT_OFFSET (EMailReaderInterface, folder_loaded),
+ NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
diff --git a/mail/e-mail-reader.h b/mail/e-mail-reader.h
index f4df175a67..331837da55 100644
--- a/mail/e-mail-reader.h
+++ b/mail/e-mail-reader.h
@@ -111,6 +111,7 @@ struct _EMailReaderInterface {
gboolean (*enable_show_folder) (EMailReader *reader);
/* Signals */
+ void (*folder_loaded) (EMailReader *reader);
void (*show_search_bar) (EMailReader *reader);
void (*update_actions) (EMailReader *reader,
guint32 state);