* src/folder.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 2 Sep 2002 12:32:43 +0000 (12:32 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Mon, 2 Sep 2002 12:32:43 +0000 (12:32 +0000)
* src/mh.c
revert change of 0.8.2claws16 and use the mh_folder_destroy
as folder->destroy virtual as suggested by Hiro
(the mh.c code seems to have been lost around mh.c.1.20)

ChangeLog.claws
configure.in
src/folder.c
src/mh.c

index c074e1a..1a06b96 100644 (file)
@@ -1,3 +1,11 @@
+2002-09-02 [alfons]    0.8.2claws20
+
+       * src/folder.c
+       * src/mh.c
+               revert change of 0.8.2claws16 and use the mh_folder_destroy
+               as folder->destroy virtual as suggested by Hiro
+               (the mh.c code seems to have been lost around mh.c.1.21)
+
 2002-09-02 [paul]      0.8.2claws19
 
        * po/pt_BR.po
index 61c08ce..6afb212 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws19
+EXTRA_VERSION=claws20
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index ac954fe..33d1498 100644 (file)
@@ -144,9 +144,9 @@ void folder_remote_folder_init(Folder *folder, const gchar *name,
 void folder_destroy(Folder *folder)
 {
        g_return_if_fail(folder != NULL);
-       
-       if (folder->destroy)
-               folder->destroy(folder);
+       g_return_if_fail(folder->destroy != NULL);
+
+       folder->destroy(folder);
 
        folder_list = g_list_remove(folder_list, folder);
 
index 865ed85..12bfe68 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -130,9 +130,7 @@ static void mh_folder_init(Folder *folder, const gchar *name, const gchar *path)
 
        folder_local_folder_init(folder, name, path);
 
-/*
-       folder->get_msg_list        = mh_get_msg_list;
-*/
+/*     folder->get_msg_list        = mh_get_msg_list; */
        folder->fetch_msg           = mh_fetch_msg;
        folder->fetch_msginfo       = mh_fetch_msginfo;
        folder->add_msg             = mh_add_msg;
@@ -143,15 +141,14 @@ static void mh_folder_init(Folder *folder, const gchar *name, const gchar *path)
        folder->remove_msg          = mh_remove_msg;
        folder->remove_all_msg      = mh_remove_all_msg;
        folder->is_msg_changed      = mh_is_msg_changed;
-/*
-       folder->scan                = mh_scan_folder;
-*/
+/*     folder->scan                = mh_scan_folder; */
        folder->get_num_list        = mh_get_num_list;
        folder->scan_tree           = mh_scan_tree;
        folder->create_tree         = mh_create_tree;
        folder->create_folder       = mh_create_folder;
        folder->rename_folder       = mh_rename_folder;
        folder->remove_folder       = mh_remove_folder;
+       folder->destroy             = mh_folder_destroy;
 }
 
 void mh_get_last_num(Folder *folder, FolderItem *item)