diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-01 03:46:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-01 07:34:38 +0800 |
commit | d94534c3673956164f9fb2c7f6b12188994503ae (patch) | |
tree | c26a8a2edb293478b2ad43e36de5feebaf84ce1d /modules/mail/e-mail-shell-view.c | |
parent | 420a4ccb20825d618b06c6be742c2c47cc15ca71 (diff) | |
download | gsoc2013-evolution-d94534c3673956164f9fb2c7f6b12188994503ae.tar.gz gsoc2013-evolution-d94534c3673956164f9fb2c7f6b12188994503ae.tar.zst gsoc2013-evolution-d94534c3673956164f9fb2c7f6b12188994503ae.zip |
Merge bits and pieces of the anjal-evo-2-30 branch.
Diffstat (limited to 'modules/mail/e-mail-shell-view.c')
-rw-r--r-- | modules/mail/e-mail-shell-view.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c index c18b3e68b0..7cd7bdfaf4 100644 --- a/modules/mail/e-mail-shell-view.c +++ b/modules/mail/e-mail-shell-view.c @@ -93,7 +93,7 @@ mail_shell_view_execute_search (EShellView *shell_view) EShellSettings *shell_settings; EMFormatHTMLDisplay *html_display; EMailShellContent *mail_shell_content; - MessageList *message_list; + GtkWidget *message_list; EFilterRule *rule; EMailReader *reader; CamelFolder *folder; @@ -126,8 +126,8 @@ mail_shell_view_execute_search (EShellView *shell_view) html_display = e_mail_reader_get_html_display (reader); message_list = e_mail_reader_get_message_list (reader); - folder_uri = message_list->folder_uri; - folder = message_list->folder; + folder_uri = MESSAGE_LIST (message_list)->folder_uri; + folder = MESSAGE_LIST (message_list)->folder; if (folder_uri != NULL) { GKeyFile *key_file; @@ -346,7 +346,7 @@ filter: break; } - message_list_set_search (message_list, query); + message_list_set_search (MESSAGE_LIST (message_list), query); e_mail_shell_content_set_search_strings ( mail_shell_content, search_strings); @@ -464,7 +464,11 @@ mail_shell_view_update_actions (EShellView *shell_view) uri = em_folder_tree_get_selected_uri (folder_tree); if (uri != NULL) { EMFolderTreeModel *model; - MessageList *message_list; + GtkWidget *message_list; + const gchar *folder_uri; + + message_list = e_mail_reader_get_message_list (reader); + folder_uri = MESSAGE_LIST (message_list)->folder_uri; /* XXX If the user right-clicks on a folder other than what * the message list is showing, disable folder rename. @@ -473,9 +477,8 @@ mail_shell_view_update_actions (EShellView *shell_view) * back to where it was to avoid cancelling the inline * folder tree editing, it's just too hairy to try to * get right. So we're punting. */ - message_list = e_mail_reader_get_message_list (reader); folder_tree_and_message_list_agree = - (g_strcmp0 (uri, message_list->folder_uri) == 0); + (g_strcmp0 (uri, folder_uri) == 0); account = mail_config_get_account_by_source_url (uri); |