2007-03-30 [paul] 2.8.1cvs68
authorPaul Mangan <paul@claws-mail.org>
Fri, 30 Mar 2007 08:49:14 +0000 (08:49 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 30 Mar 2007 08:49:14 +0000 (08:49 +0000)
* src/mainwindow.c
* src/summaryview.c
* src/summaryview.h
update summary when changing layout type
(fixes wrong folder icon being displayed)
Thanks to Colin

ChangeLog
PATCHSETS
configure.ac
src/mainwindow.c
src/summaryview.c
src/summaryview.h

index b06db89..4329cf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-03-30 [paul]      2.8.1cvs68
+
+       * src/mainwindow.c
+       * src/summaryview.c
+       * src/summaryview.h
+               update summary when changing layout type
+               (fixes wrong folder icon being displayed)
+               Thanks to Colin
+
 2007-03-29 [colin]     2.8.1cvs67
 
        * src/prefs_ext_prog.c
index 75b3194..3fef781 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.13.2.28 -r 1.13.2.29 src/common/socket.c;  cvs diff -u -r 1.13.2.12 -r 1.13.2.13 src/common/socket.h;  ) > 2.8.1cvs65.patchset
 ( cvs diff -u -r 1.382.2.367 -r 1.382.2.368 src/compose.c;  cvs diff -u -r 1.50.2.33 -r 1.50.2.34 src/compose.h;  cvs diff -u -r 1.204.2.126 -r 1.204.2.127 src/prefs_common.c;  cvs diff -u -r 1.13.2.29 -r 1.13.2.30 src/common/socket.c;  cvs diff -u -r 1.13.2.13 -r 1.13.2.14 src/common/socket.h;  ) > 2.8.1cvs66.patchset
 ( cvs diff -u -r 1.3.2.14 -r 1.3.2.15 src/prefs_ext_prog.c;  ) > 2.8.1cvs67.patchset
+( cvs diff -u -r 1.274.2.182 -r 1.274.2.183 src/mainwindow.c;  cvs diff -u -r 1.395.2.293 -r 1.395.2.294 src/summaryview.c;  cvs diff -u -r 1.68.2.35 -r 1.68.2.36 src/summaryview.h;  ) > 2.8.1cvs68.patchset
index e321032..2d67398 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=67
+EXTRA_VERSION=68
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 928375e..9150dbd 100644 (file)
@@ -1475,7 +1475,8 @@ MainWindow *main_window_create()
            prefs_common.layout_mode == SMALL_LAYOUT) {
                summary_relayout(mainwin->summaryview); 
        }
-
+       summary_update_unread(mainwin->summaryview, NULL);
+       
        gtk_widget_show(mainwin->window);
 
        /* initialize views */
@@ -3179,6 +3180,7 @@ static void set_layout_cb(MainWindow *mainwin, guint action,
                mainwindow_exit_folder(mainwin);
        }
        summary_relayout(mainwin->summaryview); 
+       summary_update_unread(mainwin->summaryview, NULL);
 }
 
 void main_window_toggle_work_offline (MainWindow *mainwin, gboolean offline,
index aaee3e0..ea85d93 100644 (file)
@@ -5906,7 +5906,6 @@ static void summary_start_drag(GtkWidget *widget, gint button, GdkEvent *event,
                                 GDK_ACTION_MOVE|GDK_ACTION_COPY|GDK_ACTION_DEFAULT, button, event);
        gtk_drag_set_icon_default(context);
        if (prefs_common.layout_mode == SMALL_LAYOUT) {
-               gint min, max, mid;
                GtkWidget *paned = GTK_WIDGET_PTR(summaryview)->parent;
                if (paned && GTK_IS_PANED(paned)) {
                        mainwindow_reset_paned(GTK_PANED(paned));
@@ -6468,7 +6467,7 @@ static gboolean summary_update_msg(gpointer source, gpointer data)
        return FALSE;
 }
 
-static void summary_update_unread(SummaryView *summaryview, FolderItem *removed_item)
+void summary_update_unread(SummaryView *summaryview, FolderItem *removed_item)
 {
        guint new, unread, unreadmarked, marked, total;
        static gboolean tips_initialized = FALSE;
index 3592eb7..2b1f0be 100644 (file)
@@ -312,4 +312,5 @@ void summary_reflect_prefs(void);
 void summaryview_activate_quicksearch(SummaryView *summaryview, gboolean show);
 void summary_set_menu_sensitive        (SummaryView            *summaryview);
 void summary_relayout(SummaryView *summaryview);
+void summary_update_unread(SummaryView *summaryview, FolderItem *removed_item);
 #endif /* __SUMMARY_H__ */