[evolution] Bug #660861 - Avoid mark-all-read on a non-folder selection
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #660861 - Avoid mark-all-read on a non-folder selection
- Date: Mon, 10 Oct 2011 20:31:13 +0000 (UTC)
commit 7225739d7d2a26f98c6835cf83e345894201a575
Author: Milan Crha <mcrha redhat com>
Date: Mon Oct 10 22:30:48 2011 +0200
Bug #660861 - Avoid mark-all-read on a non-folder selection
plugins/mark-all-read/mark-all-read.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c
index 4fe19cf..a05515b 100644
--- a/plugins/mark-all-read/mark-all-read.c
+++ b/plugins/mark-all-read/mark-all-read.c
@@ -602,7 +602,8 @@ update_actions_cb (EShellView *shell_view,
g_object_get (shell_sidebar, "folder-tree", &folder_tree, NULL);
folder_uri = em_folder_tree_get_selected_uri (folder_tree);
- visible = (scan_folder_tree_for_unread (folder_uri) > 0);
+ visible = em_folder_tree_get_selected (folder_tree, NULL, NULL)
+ && scan_folder_tree_for_unread (folder_uri) > 0;
gtk_action_set_visible (action, visible);
g_object_unref (folder_tree);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]