#include <tny-camel-imap-folder.h>
#include <tny-camel-pop-folder.h>
#ifdef MODEST_TOOLKIT_HILDON2
+#include <modest-accounts-window.h>
#include <hildon/hildon-pannable-area.h>
#include <hildon/hildon-gtk.h>
#include <modest-header-window.h>
/* Refresh the active account. Force the connection if needed
and poke the status of all folders */
modest_ui_actions_do_send_receive (NULL, TRUE, TRUE, TRUE, win);
+#ifdef MODEST_TOOLKIT_HILDON2
+ } else if (MODEST_IS_ACCOUNTS_WINDOW (win)) {
+ modest_ui_actions_do_send_receive_all (win, TRUE, TRUE, TRUE);
+#endif
} else {
const gchar *active_account;
active_account = modest_window_get_active_account (MODEST_WINDOW (win));