2005-10-13 [colin] 1.9.15cvs38
authorColin Leroy <colin@colino.net>
Thu, 13 Oct 2005 17:49:51 +0000 (17:49 +0000)
committerColin Leroy <colin@colino.net>
Thu, 13 Oct 2005 17:49:51 +0000 (17:49 +0000)
* src/summaryview.c
Faster prefs apply

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/summaryview.c

index 95e7690e36ddb99ccaded9431d78e75206a3ccd6..b1d399f35f105b6ed51d71cf85b716063d5da5b5 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-13 [colin]     1.9.15cvs38
+
+       * src/summaryview.c
+               Faster prefs apply
+
 2005-10-13 [colin]     1.9.15cvs37
 
        * src/mimeview.c
index c9b240c88d6c55ba67234010f6549753fca401ae..f0efe21d24d61b706c7095f8a69df50094a176b1 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.2.2.9 -r 1.2.2.10 src/folder_item_prefs.c;  ) > 1.9.15cvs35.patchset
 ( cvs diff -u -r 1.213.2.63 -r 1.213.2.64 src/folder.c;  cvs diff -u -r 1.207.2.71 -r 1.207.2.72 src/folderview.c;  ) > 1.9.15cvs36.patchset
 ( cvs diff -u -r 1.83.2.42 -r 1.83.2.43 src/mimeview.c;  cvs diff -u -r 1.5.2.8 -r 1.5.2.9 src/noticeview.c;  cvs diff -u -r 1.3.8.3 -r 1.3.8.4 src/noticeview.h;  cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/plugins/pgpcore/sgpgme.c;  ) > 1.9.15cvs37.patchset
+( cvs diff -u -r 1.395.2.135 -r 1.395.2.136 src/summaryview.c;  ) > 1.9.15cvs38.patchset
index 7aa87e0605991c3538bb7515ea65d8192000ff6a..15af26c84ca63500678a611cec833c0a4e946414 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=15
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=37
+EXTRA_VERSION=38
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 45e728e6481a54cffc14171cbe849aa47a8af2e1..b3d209791e547b9d0a17720f62e7acd0e1271858 100644 (file)
@@ -983,8 +983,6 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
 
        g_slist_free(mlist);
 
-       gtk_clist_thaw(GTK_CLIST(ctree));
-
        if (is_refresh) {
                summaryview->displayed =
                        summary_find_msg_by_msgnum(summaryview,
@@ -1044,6 +1042,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
        summary_status_show(summaryview);
        summary_set_menu_sensitive(summaryview);
        toolbar_main_set_sensitive(summaryview->mainwin);
+       
+       gtk_clist_thaw(GTK_CLIST(ctree));
 
        debug_print("\n");
        STATUSBAR_PUSH(summaryview->mainwin, _("Done."));
@@ -2071,13 +2071,28 @@ static void summary_set_column_titles(SummaryView *summaryview)
 
 void summary_reflect_prefs(void)
 {
+       static gchar *last_font = NULL;
+       gboolean update_font = TRUE;
        SummaryView *summaryview = NULL;
+
        if (!mainwindow_get_mainwindow())
                return;
        summaryview = mainwindow_get_mainwindow()->summaryview;
-       bold_style = bold_marked_style = bold_deleted_style = 
-               small_style = small_marked_style = small_deleted_style = NULL;
-       summary_set_fonts(summaryview);
+
+       if (last_font && !strcmp(last_font, NORMAL_FONT))
+               update_font = FALSE;
+
+       if (last_font)
+               g_free(last_font);
+       
+       last_font = g_strdup(NORMAL_FONT);
+
+       if (update_font) {      
+               bold_style = bold_marked_style = bold_deleted_style = 
+                       small_style = small_marked_style = small_deleted_style = NULL;
+               summary_set_fonts(summaryview);
+       }
+
        summary_set_column_titles(summaryview);
        summary_show(summaryview, summaryview->folder_item);
 }