aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-06 01:52:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-06 01:52:25 +0800
commita15a2953237e02bd69005ea5c39e0d3d45e95cb9 (patch)
treed9eb219d002ee8efc64e3a20afc90cf7ec7d44bb /mail/message-list.c
parentb3cdfb6bad5cad0932b02fa049da0fcab66a9603 (diff)
downloadgsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar.gz
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar.bz2
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar.lz
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar.xz
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.tar.zst
gsoc2013-evolution-a15a2953237e02bd69005ea5c39e0d3d45e95cb9.zip
Bug 620602 - Next/prev shortcuts should focus message list
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index ee80748e6f..2de21bf558 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -631,6 +631,12 @@ message_list_select(MessageList *ml, MessageListSelectDirection direction, guint
path = ml_search_path(ml, direction, flags, mask);
if (path) {
select_path(ml, path);
+
+ /* This function is usually called in response to a key
+ * press, so grab focus if the message list is visible. */
+ if (gtk_widget_get_visible (GTK_WIDGET (ml)))
+ gtk_widget_grab_focus (GTK_WIDGET (ml));
+
return TRUE;
} else
return FALSE;