#else
if (MODEST_IS_MAIN_WINDOW (top)) {
gchar *server_name;
+ GtkWidget *folder_view;
+
folder_view = modest_main_window_get_child_widget (MODEST_MAIN_WINDOW (top),
MODEST_MAIN_WINDOW_WIDGET_TYPE_FOLDER_VIEW);
- server_name = modest_account_mgr_get_server_account_name (mgr, acc_name,
- TNY_ACCOUNT_TYPE_STORE);
+ server_name = modest_account_mgr_get_server_account_name (modest_runtime_get_account_mgr (),
+ acc_name, TNY_ACCOUNT_TYPE_STORE);
if (server_name) {
- modest_folder_view_set_account_id_of_visible_server_account (folder_view,
+ modest_folder_view_set_account_id_of_visible_server_account (MODEST_FOLDER_VIEW (folder_view),
server_name);
g_free (server_name);
}
#include <config.h>
#include <glib/gi18n.h>
+#include <modest-defs.h>
#include <modest-platform.h>
#include <modest-runtime.h>
#include <modest-main-window.h>
static void fill_list_of_caches (gpointer key, gpointer value, gpointer userdata);
static gboolean _send_receive_in_progress (ModestWindow *win);
static gboolean _msgs_send_in_progress (void);
-static gboolean _all_msgs_in_sending_status (ModestHeaderView *header_view);
+static gboolean _all_msgs_in_sending_status (ModestHeaderView *header_view) G_GNUC_UNUSED;
static DimmedState *
_define_main_window_dimming_state (ModestMainWindow *window)
dimmed = _invalid_attach_selected (win, FALSE, FALSE, FALSE, rule);
if (!dimmed) {
- dimmed = _purged_attach_selected (win, TRUE);
+ dimmed = _purged_attach_selected (win, TRUE, NULL);
if (dimmed) {
modest_dimming_rule_set_notification (rule, _("mail_ib_attach_not_local"));
}