From b2ded52fe43765a977788c131388fff66a929bb3 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Wed, 10 Aug 2005 07:25:16 +0000 Subject: [PATCH] 2005-08-10 [colin] 1.9.13cvs30 * src/mainwindow.c Fix slowness in account changing --- ChangeLog-gtk2.claws | 5 +++++ PATCHSETS | 1 + configure.ac | 2 +- src/mainwindow.c | 18 +++++++++++++++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog-gtk2.claws b/ChangeLog-gtk2.claws index b616c705f..9c91baf80 100644 --- a/ChangeLog-gtk2.claws +++ b/ChangeLog-gtk2.claws @@ -1,3 +1,8 @@ +2005-08-10 [colin] 1.9.13cvs30 + + * src/mainwindow.c + Fix slowness in account changing + 2005-08-10 [colin] 1.9.13cvs29 * src/folder.c diff --git a/PATCHSETS b/PATCHSETS index fd6492dbe..ff4f23782 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -715,3 +715,4 @@ ( cvs diff -u -r 1.395.2.107 -r 1.395.2.108 src/summaryview.c; ) > 1.9.13cvs27.patchset ( cvs diff -u -r 1.395.2.108 -r 1.395.2.109 src/summaryview.c; cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/prefs_summaries.c; ) > 1.9.13cvs28.patchset ( cvs diff -u -r 1.213.2.49 -r 1.213.2.50 src/folder.c; cvs diff -u -r 1.3.2.6 -r 1.3.2.7 src/folderutils.c; cvs diff -u -r 1.207.2.55 -r 1.207.2.56 src/folderview.c; cvs diff -u -r 1.1.2.17 -r 1.1.2.18 src/imap_gtk.c; cvs diff -u -r 1.274.2.53 -r 1.274.2.54 src/mainwindow.c; cvs diff -u -r 1.2.2.10 -r 1.2.2.11 src/mh_gtk.c; cvs diff -u -r 1.150.2.34 -r 1.150.2.35 src/procmsg.c; cvs diff -u -r 1.395.2.109 -r 1.395.2.110 src/summaryview.c; ) > 1.9.13cvs29.patchset +( cvs diff -u -r 1.274.2.54 -r 1.274.2.55 src/mainwindow.c; ) > 1.9.13cvs30.patchset diff --git a/configure.ac b/configure.ac index a44bb0744..52942d6fe 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=13 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=29 +EXTRA_VERSION=30 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/mainwindow.c b/src/mainwindow.c index fa0a6aa0c..bdad4c823 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -3125,7 +3125,23 @@ static void new_account_cb(MainWindow *mainwin, guint action, static void account_selector_menu_cb(GtkMenuItem *menuitem, gpointer data) { cur_account = (PrefsAccount *)data; - main_window_reflect_prefs_all(); + FolderItem *item = NULL; + + if (!mainwindow_get_mainwindow()) + return; + main_window_show_cur_account(mainwindow_get_mainwindow()); + toolbar_update(TOOLBAR_MAIN, mainwindow_get_mainwindow()); + main_window_set_menu_sensitive(mainwindow_get_mainwindow()); + toolbar_main_set_sensitive(mainwindow_get_mainwindow()); + + item = folderview_get_selected_item( + mainwindow_get_mainwindow()->folderview); + if (item) { + toolbar_set_compose_button + (mainwindow_get_mainwindow()->toolbar, + FOLDER_TYPE(item->folder) == F_NEWS ? + COMPOSEBUTTON_NEWS : COMPOSEBUTTON_MAIL); + } } static void account_receive_menu_cb(GtkMenuItem *menuitem, gpointer data) -- 2.25.1