2009-02-15 [colin] 3.7.0cvs65
authorColin Leroy <colin@colino.net>
Sun, 15 Feb 2009 10:40:02 +0000 (10:40 +0000)
committerColin Leroy <colin@colino.net>
Sun, 15 Feb 2009 10:40:02 +0000 (10:40 +0000)
* src/folderview.c
* src/summaryview.c
Fix font updating after changing
prefs_common.derive_from_normal_font

ChangeLog
PATCHSETS
configure.ac
src/folderview.c
src/summaryview.c

index f833e46a33849d47a94237d5d635c815d0496ba5..56e77fcede33f549e8e378cc31027d699d7ff951 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-15 [colin]     3.7.0cvs65
+
+       * src/folderview.c
+       * src/summaryview.c
+               Fix font updating after changing 
+               prefs_common.derive_from_normal_font
+
 2009-02-12 [paul]      3.7.0cvs64
 
        * src/addressitem.h
index bd3597da5c347b1b0f00e2a0eafe812169f2483f..957cabcb14814bb2d71d637dbab2f04028dd7f11 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/gtk/spell_entry.c;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/gtk/spell_entry.h;  ) > 3.7.0cvs62.patchset
 ( cvs diff -u -r 1.1.4.24 -r 1.1.4.25 src/gtk/progressdialog.c;  cvs diff -u -r 1.1.4.14 -r 1.1.4.15 src/gtk/progressdialog.h;  ) > 3.7.0cvs63.patchset
 ( cvs diff -u -r 1.5.2.13 -r 1.5.2.14 src/addressitem.h;  cvs diff -u -r 1.1.16.5 -r 1.1.16.6 src/export.h;  cvs diff -u -r 1.8.2.29 -r 1.8.2.30 src/headerview.c;  cvs diff -u -r 1.2.2.5 -r 1.2.2.6 src/headerview.h;  cvs diff -u -r 1.3.2.6 -r 1.3.2.7 src/common/version.h.in;  cvs diff -u -r 1.1.4.2 -r 1.1.4.3 src/gtk/about.h;  cvs diff -u -r 1.5.2.39 -r 1.5.2.40 src/gtk/menu.c;  cvs diff -u -r 1.4.2.22 -r 1.4.2.23 src/gtk/menu.h;  ) > 3.7.0cvs64.patchset
+( cvs diff -u -r 1.207.2.211 -r 1.207.2.212 src/folderview.c;  cvs diff -u -r 1.395.2.406 -r 1.395.2.407 src/summaryview.c;  ) > 3.7.0cvs65.patchset
index 80ea406244c15e221ce18144088c086b24ba149b..e535d07c86d14bb7de6eb62808e8b02f1900da7a 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=64
+EXTRA_VERSION=65
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index be74cab0c7faa3f7d91ad800884c8a22aeea1a68..3d57267f726d8073c7df0b1f5df0fbab8add50a9 100644 (file)
@@ -2619,6 +2619,8 @@ void folderview_set_target_folder_color(gint color_op)
 static gchar *last_smallfont = NULL;
 static gchar *last_normalfont = NULL;
 static gchar *last_boldfont = NULL;
+static gboolean last_derive = 0;
+
 void folderview_reflect_prefs_pixmap_theme(FolderView *folderview)
 {
        /* force reinit */
@@ -2641,7 +2643,8 @@ void folderview_reflect_prefs(void)
 
        if (!last_smallfont || strcmp(last_smallfont, SMALL_FONT) ||
                        !last_normalfont || strcmp(last_normalfont, NORMAL_FONT) ||
-                       !last_boldfont || strcmp(last_boldfont, BOLD_FONT))
+                       !last_boldfont || strcmp(last_boldfont, BOLD_FONT) ||
+                       last_derive != prefs_common.derive_from_normal_font)
                update_font = TRUE;
 
        g_free(last_smallfont);
@@ -2650,6 +2653,7 @@ void folderview_reflect_prefs(void)
        last_normalfont = g_strdup(NORMAL_FONT);
        g_free(last_boldfont);
        last_boldfont = g_strdup(BOLD_FONT);
+       last_derive = prefs_common.derive_from_normal_font;
 
        if (update_font) {              
                normal_style = normal_color_style = bold_style = 
index 2eee86b8ad6e6458a15e3acec2a0688a2465f83f..b77944133c6f5e5ac27ed38ba9b561282075fe55 100644 (file)
@@ -2720,6 +2720,7 @@ void summary_reflect_prefs(void)
        static gchar *last_smallfont = NULL;
        static gchar *last_normalfont = NULL;
        static gchar *last_boldfont = NULL;
+       static gboolean last_derive = 0;
        gboolean update_font = FALSE;
        SummaryView *summaryview = NULL;
 
@@ -2729,7 +2730,8 @@ void summary_reflect_prefs(void)
 
        if (!last_smallfont || strcmp(last_smallfont, SMALL_FONT) ||
                        !last_normalfont || strcmp(last_normalfont, NORMAL_FONT) ||
-                       !last_boldfont || strcmp(last_boldfont, BOLD_FONT))
+                       !last_boldfont || strcmp(last_boldfont, BOLD_FONT) ||
+                       last_derive != prefs_common.derive_from_normal_font)
                update_font = TRUE;
 
        g_free(last_smallfont);
@@ -2738,6 +2740,7 @@ void summary_reflect_prefs(void)
        last_normalfont = g_strdup(NORMAL_FONT);
        g_free(last_boldfont);
        last_boldfont = g_strdup(BOLD_FONT);
+       last_derive = prefs_common.derive_from_normal_font;
 
        if (update_font) {      
                bold_style = bold_marked_style = bold_deleted_style =