aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-16 04:40:11 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-16 04:40:11 +0800
commitfb5218e3532444f4d4d9a4bb96186bdf6b0e6107 (patch)
treece5993fbbec1d803ceb8e4a13ef46332737176ed /tests
parent1755ff603bff086a19b3fbb39adc5f8022640159 (diff)
downloadgsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar.gz
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar.bz2
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar.lz
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar.xz
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.tar.zst
gsoc2013-evolution-fb5218e3532444f4d4d9a4bb96186bdf6b0e6107.zip
moved the active list readjustment code here. Much saner, providers won't
1999-08-15 bertrand <Bertrand.Guiheneuf@aful.org> * 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
Diffstat (limited to 'tests')
-rw-r--r--tests/ui-tests/store_listing.c10
-rw-r--r--tests/ui-tests/store_listing.glade3
2 files changed, 9 insertions, 4 deletions
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 @@
<widget>
<class>GnomeEntry</class>
<name>new-store-entry</name>
- <max_saved>10</max_saved>
+ <history_id>store_name_history</history_id>
+ <max_saved>15</max_saved>
<child>
<padding>0</padding>
<expand>False</expand>