- gboolean removed;
- GtkWidget *dialog;
- gchar *txt;
-
- /* Freeze updates, so we can do just one update afterwards,
- * instead of responding to every conf key change: */
- modest_account_view_block_conf_updates (priv->account_view);
+ gchar *account_title = modest_account_mgr_get_display_name(account_mgr, account_name);
+
+ /* The warning text depends on the account type: */
+ gchar *txt = NULL;
+ if (modest_account_mgr_get_store_protocol (account_mgr, account_name)
+ == MODEST_PROTOCOL_STORE_POP) {
+ txt = g_strdup_printf (_("emev_nc_delete_mailbox"),
+ account_title);
+ } else {
+ txt = g_strdup_printf (_("emev_nc_delete_mailboximap"),
+ account_title);
+ }