aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-24 05:16:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-24 05:16:00 +0800
commit373b8669f5e8b377ba0d17d938641e8650551abb (patch)
treed63d1ce1faa9fc617c84058fa6ad704580eaf7fc /mail/message-list.c
parent23faa57aef230148a5ab1c746a325be4ba029b02 (diff)
downloadgsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.gz
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.zst
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.zip
Use the message-browser widget rather than the mail-view window.
2001-04-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_view_message): Use the message-browser widget rather than the mail-view window. * mail-view.c: Removed. * folder-browser.c: Added a folder_loaded signal. * message-browser.[c,h]: New window to solve all our message browsing needs. This replaces mail-view.c. * message-list.c (message_list_select_uid): New function needed by the new message-browser window. svn path=/trunk/; revision=9525
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index dc4eff7ef0..35f413e674 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -420,6 +420,34 @@ message_list_select (MessageList *message_list, int base_row,
gtk_signal_emit(GTK_OBJECT (message_list), message_list_signals [MESSAGE_SELECTED], NULL);
}
+
+/**
+ * message_list_select_uid:
+ * @message_list:
+ * @uid:
+ *
+ * Selects the message with the given UID.
+ **/
+void
+message_list_select_uid (MessageList *message_list, const char *uid)
+{
+ ETreePath node;
+
+ node = g_hash_table_lookup (message_list->uid_nodemap, uid);
+ if (node) {
+ CamelMessageInfo *info;
+
+ info = get_message_info (message_list, node);
+ e_tree_set_cursor (message_list->tree, node);
+ gtk_signal_emit (GTK_OBJECT (message_list), message_list_signals[MESSAGE_SELECTED],
+ camel_message_info_uid (info));
+ } else {
+ g_free (message_list->cursor_uid);
+ message_list->cursor_uid = NULL;
+ gtk_signal_emit (GTK_OBJECT (message_list), message_list_signals [MESSAGE_SELECTED], uid);
+ }
+}
+
static void
add_uid (MessageList *ml, const char *uid, gpointer data)
{