diff options
Diffstat (limited to 'mail/message-browser.c')
-rw-r--r-- | mail/message-browser.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mail/message-browser.c b/mail/message-browser.c index 0a63c49c91..71d3065914 100644 --- a/mail/message-browser.c +++ b/mail/message-browser.c @@ -171,13 +171,22 @@ message_browser_message_loaded (FolderBrowser *fb, const char *uid, MessageBrows } static void -message_browser_folder_loaded (FolderBrowser *fb, const char *uri, MessageBrowser *mb) +message_browser_message_list_built (MessageList *ml, MessageBrowser *mb) { const char *uid = gtk_object_get_data (GTK_OBJECT (mb), "uid"); - g_warning ("got 'folder_loaded' event"); + g_warning ("got 'message_list_built' event"); + + message_list_select_uid (ml, uid); +} + +static void +message_browser_folder_loaded (FolderBrowser *fb, const char *uri, MessageBrowser *mb) +{ + g_warning ("got 'folder_loaded' event for '%s'", uri); - message_list_select_uid (fb->message_list, uid); + gtk_signal_connect (GTK_OBJECT (fb->message_list), "message_list_built", + message_browser_message_list_built, mb); } static GnomeUIInfo message_browser_toolbar [] = { |