From c07ab468d605431cfee94f5b5c4ce9e1875b8d85 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 10 Jul 2010 09:30:19 -0400 Subject: Bug 623738 - Select All is always enabled for message list --- mail/message-list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3