From 0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 May 2010 17:19:41 -0400 Subject: Coding style and whitespace cleanup. --- modules/mail/e-mail-shell-view-actions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/mail/e-mail-shell-view-actions.c') diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 3ba34e68c0..2fa6389bd0 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -217,6 +217,7 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action, EShellView *shell_view; CamelFolder *folder; GtkWindow *parent; + MailFolderCache *cache; MessageList *message_list; GPtrArray *uids; const gchar *key; @@ -232,8 +233,9 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action, folder = e_mail_reader_get_folder (reader); g_return_if_fail (folder != NULL); + cache = mail_folder_cache_get_default (); key = "/apps/evolution/mail/prompts/mark_all_read"; - if (mail_folder_cache_get_folder_has_children (mail_folder_cache_get_default (), folder, NULL)) + if (mail_folder_cache_get_folder_has_children (cache, folder, NULL)) prompt = "mail:ask-mark-all-read-sub"; else prompt = "mail:ask-mark-all-read"; -- cgit v1.2.3