diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-07 04:19:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-07 04:19:22 +0800 |
commit | ff91646452fd4bcddbfc1d6acc5d18c99cf021f6 (patch) | |
tree | c72e7d70120a1aa1c01dbc2a55439d2d7b46ef91 /mail | |
parent | ecc4f0385a1109a9344d00c69325744e710b57d5 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/folder-browser.c | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 9 |
3 files changed, 13 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 19768f4c59..973e9d85ea 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2001-07-06 Jeffrey Stedfast <fejj@ximian.com> + * folder-browser.c (folder_browser_copy): Freeze and Thaw the + folder. + +2001-07-06 Jeffrey Stedfast <fejj@ximian.com> + * folder-browser.c (folder_browser_copy): Mark the messages as Seen also. (folder_browser_class_init): Create an atom type for 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; diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index bff58b5bec..989698bfac 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -980,9 +980,8 @@ transfer_msg (GtkWidget *widget, gpointer user_data, gboolean delete_from_source else desc = _("Copy message(s) to"); - evolution_shell_client_user_select_folder (global_shell_client, - desc, - last, allowed_types, &uri, &physical); + evolution_shell_client_user_select_folder (global_shell_client, desc, last, + allowed_types, &uri, &physical); if (!uri) return; @@ -1252,13 +1251,13 @@ toggle_flags (FolderBrowser *fb, guint32 mask) void mark_as_seen (BonoboUIComponent *uih, void *user_data, const char *path) { - flag_messages (FOLDER_BROWSER(user_data), CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); + flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); } void mark_as_unseen (BonoboUIComponent *uih, void *user_data, const char *path) { - flag_messages (FOLDER_BROWSER(user_data), CAMEL_MESSAGE_SEEN, 0); + flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_SEEN, 0); } void |