add destructor for mainwindow so that the last MimeInfo opened in messageview is...
authorHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Fri, 5 Dec 2003 14:58:15 +0000 (14:58 +0000)
committerHoà Viêt Dinh <dinh.viet.hoa@free.fr>
Fri, 5 Dec 2003 14:58:15 +0000 (14:58 +0000)
ChangeLog.claws
configure.ac
src/main.c
src/mainwindow.c
src/mainwindow.h

index 4c17e2568f6bd68d48f63d43e092743495983c9e..52e8ee47124a20e7576859961c8869984c6dd1ea 100644 (file)
@@ -1,3 +1,12 @@
+2003-12-05 [hoa]       0.9.7claws22
+
+       * src/main.c
+       * src/mainwindow.[ch]
+       * src/mainwindow.h
+               add destructor for mainwindow so that the last 
+               MimeInfo opened in messageview is destroyed when
+               exiting sylpheed.
+
 2003-12-05 [hoa]       0.9.7claws21
 
        * src/filtering.[ch]
index 97903c7e55889947ccfbfd83192625e6c552ee66..ebe0df2d192fc9a07fd8e8d0ecb0ac96f16aa71a 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=21
+EXTRA_VERSION=22
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index bc48b2ad5937130ba5d71d7e5b18c8271c8ac43e..fa6b38d72297ce68a879c456c8ddab3b67f7f594 100644 (file)
@@ -352,6 +352,8 @@ int main(int argc, char *argv[])
        static_mainwindow = mainwin;
        gtk_main();
 
+       main_window_destroy(mainwin);
+       
        plugin_unload_all("GTK");
 
        prefs_toolbar_done();
index 01c39cf333074842f3df30a0b156946149238637..5aeb7392895bf1351d189bf155fce832033278e6 100644 (file)
@@ -1042,6 +1042,12 @@ MainWindow *main_window_create(SeparateType type)
        return mainwin;
 }
 
+void main_window_destroy(MainWindow *mainwin)
+{
+       /* TODO : destroy other component */
+       messageview_destroy(mainwin->messageview);
+}
+
 void main_window_cursor_wait(MainWindow *mainwin)
 {
 
index 39932181ff94ff3b389a874c24aaed54a83310f2..be1555ea37e84b1a5f8b4d473967afeb1c97a4d3 100644 (file)
@@ -136,6 +136,8 @@ struct _MainWindow
 
 MainWindow *main_window_create         (SeparateType    type);
 
+void main_window_destroy                (MainWindow *mainwin);
+
 void main_window_cursor_wait           (MainWindow     *mainwin);
 void main_window_cursor_normal         (MainWindow     *mainwin);