Updated the resolved fixed bugs into changelog for week 29.
[modest] / src / maemo / modest-account-view-window.c
index 6828ac4..7e57a0d 100644 (file)
@@ -39,6 +39,7 @@
 #include "modest-tny-platform-factory.h"
 #include "maemo/easysetup/modest-easysetup-wizard.h"
 #include "maemo/modest-account-settings-dialog.h"
+#include <maemo/modest-maemo-utils.h>
 #include "widgets/modest-ui-constants.h"
 
 /* 'private'/'protected' functions */
@@ -234,9 +235,7 @@ on_edit_button_clicked (GtkWidget *button, ModestAccountViewWindow *self)
        ModestAccountSettingsDialog *dialog = modest_account_settings_dialog_new ();
        modest_account_settings_dialog_set_account_name (dialog, account_name);
        
-       gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (self));
-       gtk_dialog_run (GTK_DIALOG (dialog));
-       gtk_widget_destroy (GTK_WIDGET (dialog));
+       modest_maemo_show_dialog_and_forget (GTK_WINDOW (self), GTK_DIALOG (dialog));
        
        g_free (account_name);
 }
@@ -246,9 +245,7 @@ on_new_button_clicked (GtkWidget *button, ModestAccountViewWindow *self)
 {
        /* Show the easy-setup wizard: */
        ModestEasysetupWizardDialog *wizard = modest_easysetup_wizard_dialog_new ();
-       gtk_window_set_transient_for (GTK_WINDOW (wizard), GTK_WINDOW (self));
-       gtk_dialog_run (GTK_DIALOG (wizard));
-       gtk_widget_destroy (GTK_WIDGET (wizard));
+       modest_maemo_show_dialog_and_forget (GTK_WINDOW (self), GTK_DIALOG (wizard));
 }