diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 04:47:50 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 04:47:50 +0000 |
commit | c308243c7d4dc4a20daff727d58d26720e0fb63b (patch) | |
tree | 1b33c370f7bc2654c98e8754d4b0cda73b95f7ee /src/mainwindow.c | |
parent | f82890983637db3b6d9fab8da2c2fedaf8b4c800 (diff) |
implemented new account setup wizard.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2454 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index dd5eedb9..6280f654 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -97,6 +97,7 @@ #include "about.h" #include "manual.h" #include "update_check.h" +#include "setup.h" #include "version.h" #define AC_LABEL_WIDTH 240 @@ -3896,8 +3897,17 @@ static void prefs_account_open_cb(MainWindow *mainwin, guint action, static void new_account_cb(MainWindow *mainwin, guint action, GtkWidget *widget) { - account_edit_open(); - if (!compose_get_compose_list()) account_add(); + if (compose_get_compose_list()) { + alertpanel_notice(_("Some composing windows are open.\n" + "Please close all the composing windows before editing the accounts.")); + return; + } + + setup_account(); + account_set_menu(); + main_window_reflect_prefs_all(); + account_set_missing_folder(); + folderview_set(mainwin->folderview); } static void account_selector_menu_cb(GtkMenuItem *menuitem, gpointer data) |