From fb5218e3532444f4d4d9a4bb96186bdf6b0e6107 Mon Sep 17 00:00:00 2001 From: bertrand Date: Sun, 15 Aug 1999 20:40:11 +0000 Subject: moved the active list readjustment code here. Much saner, providers won't 1999-08-15 bertrand * camel/camel-folder.c (camel_folder_expunge): moved the active list readjustment code here. Much saner, providers won't have to worry about that. * camel/providers/MH/camel-mh-folder.c (_expunge): no more active list readjustment stuff. * camel/camel-folder.h: the expunge virtual no more returns a list of expunged messages. Now providers only have to set the expunge flag on the expunged messages. * camel/camel-folder.c (camel_folder_get_message): moved the caching code here. Finally, I don't want providers to crash the libs with a bad message cache implementation. (_close): do not call the CamelFolder virtual expunge method directly, use camel_folder_expunge() instead. (camel_folder_expunge): added the want_list param. The client can decide if it wants the expunged message list or not. If yes, it'll have to unref the messages itself. svn path=/trunk/; revision=1117 --- tests/ui-tests/store_listing.c | 10 +++++++--- tests/ui-tests/store_listing.glade | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/ui-tests') diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c index 02a5066164..377c17baf7 100644 --- a/tests/ui-tests/store_listing.c +++ b/tests/ui-tests/store_listing.c @@ -198,7 +198,7 @@ expunge_selected_folders () if (folder && IS_CAMEL_FOLDER (folder)) { folder_name = camel_folder_get_name (folder); printf ("folder to expunge : %s\n", folder_name); - camel_folder_expunge (folder); + camel_folder_expunge (folder, FALSE); /* reshowing the folder this way is uggly but allows to check the message are correctly renoved and the cache works correctly */ @@ -277,7 +277,8 @@ on_message_delete_activate (GtkWidget *widget, void *data) int main(int argc, char *argv[]) { - + GtkWidget *new_store_gnome_entry; + gnome_init ("store_listing", "1.0", argc, argv); glade_gnome_init (); @@ -288,8 +289,11 @@ main(int argc, char *argv[]) _session = camel_session_new (); camel_provider_register_as_module ("../../camel/providers/MH/.libs/libcamelmh.so"); + new_store_gnome_entry = glade_xml_get_widget (xml, "new-store-entry"); + gnome_entry_load_history (GNOME_ENTRY (new_store_gnome_entry)); gtk_main (); - + gnome_entry_save_history (GNOME_ENTRY (new_store_gnome_entry)); + return 0; } diff --git a/tests/ui-tests/store_listing.glade b/tests/ui-tests/store_listing.glade index 2a90aa327a..34acf37e6f 100644 --- a/tests/ui-tests/store_listing.glade +++ b/tests/ui-tests/store_listing.glade @@ -421,7 +421,8 @@ GnomeEntry new-store-entry - 10 + store_name_history + 15 0 False -- cgit v1.2.3