aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-thread.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-11-03 17:28:00 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-11-03 17:28:00 +0800
commit8952ed2a26a3096c4592bd3dc0d8e47829e3999c (patch)
tree5f961203ade5184110e865cfcbf866f00e4f5492 /mail/message-thread.c
parent2f0f6b89c36edeeb6b28d67992ab88c01e02dd49 (diff)
downloadgsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar.gz
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar.bz2
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar.lz
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar.xz
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.tar.zst
gsoc2013-evolution-8952ed2a26a3096c4592bd3dc0d8e47829e3999c.zip
Added mail-display.h.
2000-11-03 Not Zed <NotZed@HelixCode.com> * mail-view.c: Added mail-display.h. * mail-autofilter.c: Removed unecessary headers. Who ran indent over this code? Sigh. * mail-ops.c (display_message_input_s): Added messagedisplay. (mail_do_display_message): Added messagedisplay arg. (mail_do_display_message): Dont bother doing another thread when we know we dont have a uid. (): Added folder-browser.h to headers. Sigh. * folder-browser-factory.c (control_activate): Setup the viewthreaded callback to the folder_browser function. * folder-browser.c (my_folder_browser_init): Connect to right_click of etable of the messagelist here. (on_right_click): Changed for argument changes. (folder_browser_toggle_threads): Changed to take a fb, and to set threaded mode on the messagelist. (my_folder_browser_init): Connect also to the double_click signal. (my_folder_browser_init): Connect to the message_selected signal of the message_list. (on_message_selected): Signal handler for message selected. (my_folder_browser_init): Fix for change to message_list_new(). * message-list.h: Dont include folder-browser.h. (message_list_toggle_threads): Moved into folder-browser.h. (struct _MessageList): Removed folderbrowser. * mail.h: Dont include folder-browser.h here either, but mail-types.h instead. Moved prototypes moved into folder-browser.c into folder-browser.h. (vfolder_*, filter_*). * mail-display.h: Dont include folder-browser.h here, but mail-types.h and specific camel headers. * message-thread.c (sort_node): Invert the sort order logic so the list is sorted in mailbox order, not reverse mailbox order. * message-list.c (free_tree_ids): Fix a merge foo. (remove_node_diff): Removed unused row argument. Fixed callers/prototype. (clear_tree): pre_change on the removal of the root node. (build_flat): Only perform pre_change if we are rebuilding the whole lot. For incremental change let etable do its thing. (build_tree): Likewise for building the tree view. If making incremental updates, do them as we build it. (vfolder_subject): (vfolder_sender): (vfolder_recipient): (filter_subject): (filter_sender): (filter_recipient): (filter_mlist): (on_right_click): Moved to folder-browser.c, where they belong. (message_list_init): Dont connect to right_click anymore. (message_list_toggle_threads): Moved to folder-browser.c, renamed. (on_double_click): Moved to folder-browser.c (on_click): Set the flags directly, rather than in anothre thread, which is just not necessary. (message_list_class_init): Added a new signal 'message_selected', to indicate when a message was selected. (on_cursor_change_idle): Emit a signal, rather than directly triggering the display update. (select_row): Removed, no longer used. (idle_select_row): And this too. (select_msg): Removed as well. (message_list_select): Emit a signal, rather thandisplaying/clearing the mail-display directly. (mark_msg_seen): Moved to folder-browser.c (message_list_new): Removed folderbrowser argument. svn path=/trunk/; revision=6365
Diffstat (limited to 'mail/message-thread.c')
-rw-r--r--mail/message-thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/message-thread.c b/mail/message-thread.c
index 0733a8b3ff..ce05f5e89a 100644
--- a/mail/message-thread.c
+++ b/mail/message-thread.c
@@ -380,9 +380,9 @@ sort_node(const void *a, const void *b)
if (a1->order == b1->order)
return 0;
if (a1->order < b1->order)
- return 1;
- else
return -1;
+ else
+ return 1;
}
static void
@@ -534,7 +534,7 @@ thread_messages(CamelFolder *folder, GPtrArray *uids)
gettimeofday(&end, NULL);
diff = end.tv_sec * 1000 + end.tv_usec/1000;
diff -= start.tv_sec * 1000 + start.tv_usec/1000;
- printf("Message threading %d messages took %d.%03d seconds\n",
+ printf("Message threading %d messages took %ld.%03ld seconds\n",
uids->len, diff / 1000, diff % 1000);
#endif
return thread;