fix header_pane visibility after playing with folder/message separation
authorColin Leroy <colin@colino.net>
Fri, 23 Aug 2002 11:29:26 +0000 (11:29 +0000)
committerColin Leroy <colin@colino.net>
Fri, 23 Aug 2002 11:29:26 +0000 (11:29 +0000)
ChangeLog.claws
configure.in
src/mainwindow.c

index 101a4ee..57ecfcb 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-23 [colin]     0.8.1claws108
+
+       * src/mainwindow.c
+               fix header pane visibility after folderview or
+               messageview (de)separation
+
 2002-08-23 [paul]      0.8.1claws107
 
        * src/mainwindow.[ch]
index 0e0ffa0..81f7a6c 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws107
+EXTRA_VERSION=claws108
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 782bb2d..0efad3b 100644 (file)
@@ -1749,6 +1749,10 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
 
                mainwin->win.sep_none.hpaned = hpaned;
                mainwin->win.sep_none.vpaned = vpaned;
+               
+               /* remove headerview if not in prefs */
+               headerview_set_visibility(mainwin->messageview->headerview,
+                                         prefs_common.display_header_pane);
                break;
        case SEPARATE_FOLDER:
                vpaned = gtk_vpaned_new();
@@ -1787,6 +1791,11 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
                 * lose track of its visibility state */
                if (!noticeview_is_visible(mainwin->messageview->noticeview)) 
                        gtk_widget_hide(GTK_WIDGET_PTR(mainwin->messageview->noticeview));
+               
+               /* remove headerview if not in prefs */
+               headerview_set_visibility(mainwin->messageview->headerview,
+                                         prefs_common.display_header_pane);
+               
                break;
        case SEPARATE_MESSAGE:
                hpaned = gtk_hpaned_new();