* 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.20)
This commit is contained in:
Alfons Hoogervorst 2002-09-02 12:32:43 +00:00
parent 74bfd8b3ac
commit dd22247ad3
4 changed files with 15 additions and 10 deletions

View 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 2002-09-02 [paul] 0.8.2claws19
* po/pt_BR.po * po/pt_BR.po

View file

@ -8,7 +8,7 @@ MINOR_VERSION=8
MICRO_VERSION=2 MICRO_VERSION=2
INTERFACE_AGE=0 INTERFACE_AGE=0
BINARY_AGE=0 BINARY_AGE=0
EXTRA_VERSION=claws19 EXTRA_VERSION=claws20
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target dnl set $target

View file

@ -144,9 +144,9 @@ void folder_remote_folder_init(Folder *folder, const gchar *name,
void folder_destroy(Folder *folder) void folder_destroy(Folder *folder)
{ {
g_return_if_fail(folder != NULL); g_return_if_fail(folder != NULL);
g_return_if_fail(folder->destroy != NULL);
if (folder->destroy)
folder->destroy(folder); folder->destroy(folder);
folder_list = g_list_remove(folder_list, folder); folder_list = g_list_remove(folder_list, folder);

View file

@ -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_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_msg = mh_fetch_msg;
folder->fetch_msginfo = mh_fetch_msginfo; folder->fetch_msginfo = mh_fetch_msginfo;
folder->add_msg = mh_add_msg; 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_msg = mh_remove_msg;
folder->remove_all_msg = mh_remove_all_msg; folder->remove_all_msg = mh_remove_all_msg;
folder->is_msg_changed = mh_is_msg_changed; 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->get_num_list = mh_get_num_list;
folder->scan_tree = mh_scan_tree; folder->scan_tree = mh_scan_tree;
folder->create_tree = mh_create_tree; folder->create_tree = mh_create_tree;
folder->create_folder = mh_create_folder; folder->create_folder = mh_create_folder;
folder->rename_folder = mh_rename_folder; folder->rename_folder = mh_rename_folder;
folder->remove_folder = mh_remove_folder; folder->remove_folder = mh_remove_folder;
folder->destroy = mh_folder_destroy;
} }
void mh_get_last_num(Folder *folder, FolderItem *item) void mh_get_last_num(Folder *folder, FolderItem *item)