* 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 c074e1a0bb43e78e9a5e55439f8a2d73596bd72e..1a06b96459b1fb5df4be023a57d6065e741df8c9 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 61c08ce5dd5bba7919290e7cfe12300e24b83b24..6afb2126216d35bb6fb1d01124c389f0ec4988d2 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 ac954fe46a77126a84a493d39752b2129a6ea48e..33d1498d8b7cada21df8f1e641750c0dbefb5751 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 865ed85488c831810b8a74af4908303e3b7f6a78..12bfe6820df0478144f28899f269163235508636 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)