aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-07 04:19:22 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-07 04:19:22 +0800
commitff91646452fd4bcddbfc1d6acc5d18c99cf021f6 (patch)
treec72e7d70120a1aa1c01dbc2a55439d2d7b46ef91 /mail/folder-browser.c
parentecc4f0385a1109a9344d00c69325744e710b57d5 (diff)
downloadgsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar.gz
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar.bz2
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar.lz
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar.xz
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.tar.zst
gsoc2013-evolution-ff91646452fd4bcddbfc1d6acc5d18c99cf021f6.zip
Freeze and Thaw the folder.
2001-07-06 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_copy): Freeze and Thaw the folder. svn path=/trunk/; revision=10855
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index d1bf206ffa..892af9ae0e 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -628,6 +628,7 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb)
g_byte_array_append (bytes, " ", 1);
/* write the uids */
+ camel_folder_freeze (fb->folder);
for (i = 0; i < uids->len; i++) {
if (cut) {
camel_folder_set_message_flags (fb->folder, uids->pdata[i],
@@ -640,6 +641,7 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb)
if (i + 1 < uids->len)
g_byte_array_append (bytes, "", 1);
}
+ camel_folder_thaw (fb->folder);
g_ptr_array_free (uids, TRUE);
@@ -1653,8 +1655,8 @@ do_mark_seen (gpointer data)
FolderBrowser *fb = data;
if (fb->new_uid && fb->loaded_uid
- && strcmp(fb->new_uid, fb->loaded_uid) == 0) {
- camel_folder_set_message_flags(fb->folder, fb->new_uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
+ && strcmp (fb->new_uid, fb->loaded_uid) == 0) {
+ camel_folder_set_message_flags (fb->folder, fb->new_uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
}
return FALSE;