store_protocol,
MODEST_PROTOCOL_REGISTRY_MULTI_MAILBOX_PROVIDER_PROTOCOLS);
-#ifdef MODEST_TOOLKIT_HILDON2
if (mailboxes_protocol) {
new_window = GTK_WIDGET (modest_mailboxes_window_new (acc_name));
} else {
modest_folder_window_set_account (MODEST_FOLDER_WINDOW (new_window),
acc_name);
}
-#else
- new_window = GTK_WIDGET (modest_folder_window_new (NULL));
- modest_folder_window_set_account (MODEST_FOLDER_WINDOW (new_window),
- acc_name);
-#endif
if (modest_window_mgr_register_window (mgr, MODEST_WINDOW (new_window), NULL)) {
gtk_widget_show (new_window);
account_id);
/* Update window title */
- update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
-
- if (account)
+ if (account) {
+ update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
g_object_unref (account);
+ }
}
static void
/* Set the account of the headers */
account = tny_folder_get_account (folder);
if (account) {
+ const gchar *acc_name;
+ acc_name =
+ modest_tny_account_get_parent_modest_account_name_for_server_account (account);
notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
"email-account",
- tny_account_get_id (account));
+ acc_name);
g_object_unref (account);
}
}