2005-02-10 [colin] 1.0.1cvs3.1
authorColin Leroy <colin@colino.net>
Thu, 10 Feb 2005 09:50:19 +0000 (09:50 +0000)
committerColin Leroy <colin@colino.net>
Thu, 10 Feb 2005 09:50:19 +0000 (09:50 +0000)
* src/mainwindow.c
Sync with HEAD

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

index 91835a06cdb57645b373371a475aa309db79bfbd..d8e3307476abe3331df2a8201ca35ff50b8e707f 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-10 [colin]     1.0.1cvs3.1
+
+       * src/mainwindow.c
+               Sync with HEAD
+
 2005-02-10 [colin]     1.0.1cvs2.1
 
        * src/messageview.c
index 96dc4a8369b1089aa1b76e30d749991f8d762aa8..0debab51f2b7960a1188c284195678c2befbca85 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.65.2.21 -r 1.65.2.22 src/codeconv.c; ) > 1.0.1cvs1.2.patchset
 ( cvs diff -u -r 1.96.2.42 -r 1.96.2.43 src/textview.c; cvs diff -u -r 1.12.2.3 -r 1.12.2.4 src/textview.h; ) > 1.0.1cvs1.3.patchset
 ( cvs diff -u -r 1.94.2.43 -r 1.94.2.44 src/messageview.c; ) > 1.0.1cvs2.1.patchset
+( cvs diff -u -r 1.274.2.30 -r 1.274.2.31 src/mainwindow.c; ) > 1.0.1cvs3.1.patchset
index 6aadb381e4f3ed04d5eb21d57a7fce08925065f2..8ff225b99320593793b584cdccf48bae6eb7b840 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=2
+EXTRA_VERSION=3
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=.1
 
index 8525b86fe6947d2b746d2d2ffcdeb69a2879862b..94bd360badece87b048442cf46951296ce5e6f75 100644 (file)
@@ -1123,6 +1123,7 @@ void main_window_destroy(MainWindow *mainwin)
 {
        /* TODO : destroy other component */
        messageview_destroy(mainwin->messageview);
+       mainwin->messageview = NULL;    
 }
 
 void main_window_update_actions_menu(MainWindow *mainwin)
@@ -1492,6 +1493,12 @@ void main_window_get_size(MainWindow *mainwin)
 {
        GtkAllocation *allocation;
 
+       if (mainwin->messageview == NULL) {
+               debug_print("called after messageview "
+                           "has been deallocated!\n");
+               return;
+       }
+
        allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation);
 
        if (allocation->width > 1 && allocation->height > 1) {