* src/mainwindow.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 19 Nov 2003 19:06:32 +0000 (19:06 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 19 Nov 2003 19:06:32 +0000 (19:06 +0000)
fix crash when toggling separate views, patch submitted
by Pawel Pekala <c0rn|AT|gazeta.pl>.
fixes bug #342, "separate views  cause crash"

ChangeLog.claws
configure.ac
src/mainwindow.c

index 80a8867..429cc33 100644 (file)
@@ -1,3 +1,10 @@
+2003-11-19 [alfons]    0.9.6claws82
+
+       * src/mainwindow.c
+               fix crash when toggling separate views, patch submitted
+               by Pawel Pekala <c0rn|AT|gazeta.pl>.
+               fixes bug #342, "separate views  cause crash"
+
 2003-11-19 [paul]      0.9.6claws81
 
        * src/compose.c
index 7604901..942c4a5 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=81
+EXTRA_VERSION=82
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index df88e44..43d9b7c 100644 (file)
@@ -1913,12 +1913,23 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
 
                break;
        case SEPARATE_BOTH:
+               messageview_add_toolbar(mainwin->messageview, messagewin);
+               msgview_ifactory = gtk_item_factory_from_widget(mainwin->messageview->menubar);
+               menu_set_sensitive(msgview_ifactory, "/File/Close", FALSE);
+
                gtk_box_pack_start(GTK_BOX(vbox_body),
                                   GTK_WIDGET_PTR(mainwin->summaryview),
                                   TRUE, TRUE, 0);
-
+               
                mainwin->win.sep_both.folderwin = folderwin;
                mainwin->win.sep_both.messagewin = messagewin;
+               
+               gtk_widget_realize(messagewin);
+               gtk_widget_show_all(GTK_WIDGET_PTR(mainwin->messageview));
+               gtk_widget_show_all(messagewin);
+               toolbar_set_style(mainwin->messageview->toolbar->toolbar, 
+                                 mainwin->messageview->handlebox, 
+                                 prefs_common.toolbar_style);          
 
                break;
        }