diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-23 01:32:00 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-23 01:32:00 +0800 |
commit | 6ae1dd504509573df5a310a73ba83825d311845b (patch) | |
tree | 91d4a4faa9f0a48ebe51b2b94e66fa8421f540dc /mail/message-browser.c | |
parent | bc885bb22ebc81170ee0c6a602a836d4763777c7 (diff) | |
download | gsoc2013-evolution-6ae1dd504509573df5a310a73ba83825d311845b.tar.gz gsoc2013-evolution-6ae1dd504509573df5a310a73ba83825d311845b.tar.zst gsoc2013-evolution-6ae1dd504509573df5a310a73ba83825d311845b.zip |
Instead of calling message_list_select_uid() here, instead connect to the
2001-05-22 Jeffrey Stedfast <fejj@ximian.com>
* message-browser.c (message_browser_folder_loaded): Instead of
calling message_list_select_uid() here, instead connect to the
"message_list_loaded" signal since the message-list is not built
yet at this point.
(message_browser_message_list_built): Call
message_list_select_uid() here instead.
* message-list.c: Lets have a new signal, MESSAGE_LIST_BUILT, that
gets emitted when the message-list has finished being built by one
of the built_*() functions.
(message_list_class_init): Setup the signal stuff.
(regen_list_regened): Emit the signal here (should this perhaps be
moved into each of the build_*() functions instead?).
svn path=/trunk/; revision=9925
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 [] = { |