Fixes NB#123588, "Inbox" folder appears unstranslated in new folder dialog
[modest] / src / gnome / modest-account-view-window.c
index 5465c78..68b5f8d 100644 (file)
@@ -37,6 +37,7 @@
 #include <modest-account-mgr-helpers.h>
 #include <string.h>
 #include "modest-account-assistant.h"
+#include "modest-account-protocol.h"
 #include "modest-tny-platform-factory.h"
 #include "modest-platform.h"
 
@@ -173,7 +174,7 @@ on_remove_button_clicked (GtkWidget *button, ModestAccountViewWindow *self)
                gint response;
 
                if (modest_account_mgr_get_store_protocol (account_mgr, account_name) 
-                   == MODEST_PROTOCOL_STORE_POP) {
+                   == MODEST_PROTOCOLS_STORE_POP) {
                                txt = g_strdup_printf (_("emev_nc_delete_mailbox"), 
                                                       account_title);
                } else {
@@ -335,7 +336,7 @@ on_add_button_clicked (GtkWidget *button, ModestAccountViewWindow *self)
        /* there is no such wizard yet */
        wizard = GTK_DIALOG (modest_account_assistant_new (modest_runtime_get_account_mgr ()));
        modest_window_mgr_set_modal (modest_runtime_get_window_mgr(), 
-                                    GTK_WINDOW (wizard));
+                                    GTK_WINDOW (wizard), self);
 
        /* if there is already another modal dialog, make it non-modal */
        if (dialog)