aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-10 21:30:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-10 21:30:19 +0800
commitc07ab468d605431cfee94f5b5c4ce9e1875b8d85 (patch)
tree24d818d5b9d9db85b63c98d35019f7ecd53611a8 /mail
parent523d1da0198170a476cf965ba6f9075bf67608cb (diff)
downloadgsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar.gz
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar.bz2
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar.lz
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar.xz
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.tar.zst
gsoc2013-evolution-c07ab468d605431cfee94f5b5c4ce9e1875b8d85.zip
Bug 623738 - Select All is always enabled for message list
Diffstat (limited to 'mail')
-rw-r--r--mail/message-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index fdf275ba6c..6a051844fd 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2575,10 +2575,12 @@ message_list_selectable_update_actions (ESelectable *selectable,
gint n_clipboard_targets)
{
GtkAction *action;
+ gboolean sensitive;
action = e_focus_tracker_get_select_all_action (focus_tracker);
+ sensitive = (e_tree_row_count (E_TREE (selectable)) > 0);
gtk_action_set_tooltip (action, _("Select all visible messages"));
- gtk_action_set_sensitive (action, TRUE);
+ gtk_action_set_sensitive (action, sensitive);
}
static void