Don't destroy the account settings window with parent.
[modest] / src / hildon2 / modest-account-view-window.c
index 8d0c6dd..460f8c4 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <modest-runtime.h>
 #include "modest-platform.h"
+#include "modest-text-utils.h"
 #include "modest-account-protocol.h"
 #include <modest-account-mgr-helpers.h>
 #include <string.h>
@@ -271,6 +272,7 @@ on_account_activated (GtkTreeView *account_view,
                        ModestAccountSettingsDialog *dialog =
                                modest_account_protocol_get_account_settings_dialog (proto, account_name);
                        modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (dialog), GTK_WINDOW (self));
+                       gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), FALSE);
                        gtk_widget_show (GTK_WIDGET (dialog));
                }
        }
@@ -318,9 +320,11 @@ static void
 setup_button_box (ModestAccountViewWindow *self, GtkButtonBox *box)
 {
        ModestAccountViewWindowPrivate *priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
-       
-       priv->new_button     = gtk_button_new_from_stock(_("mcen_bd_new"));
-       
+
+       priv->new_button     = gtk_button_new_from_stock(_HL("wdgt_bd_new"));
+       hildon_gtk_widget_set_theme_size (priv->new_button,
+                                         HILDON_SIZE_FINGER_HEIGHT);
+
        g_signal_connect (G_OBJECT(priv->new_button), "clicked",
                          G_CALLBACK(on_new_button_clicked),
                          self);