aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-08 03:16:05 +0800
committerDan Winship <danw@src.gnome.org>2001-05-08 03:16:05 +0800
commita8cdef7243983680240647ba30d8cfa8f9815511 (patch)
tree2195361498ebd9dbc490c2ec7abcb41bc7337d4c /mail/message-list.c
parenta703c61b47151e7b6897fa657bc22be6e8526c3a (diff)
downloadgsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar.gz
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar.bz2
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar.lz
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar.xz
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.tar.zst
gsoc2013-evolution-a8cdef7243983680240647ba30d8cfa8f9815511.zip
Connect to key_press_event on the GtkHTML widget. (etree_key): Only handle
* folder-browser.c (my_folder_browser_init): Connect to key_press_event on the GtkHTML widget. (etree_key): Only handle space/backspace here, pass the rest off to on_key_press. (on_key_press): Handle Delete/N/P/Menu in either MessageList or MailDisplay. * message-list.c (message_list_select): Grab focus if we don't have it. svn path=/trunk/; revision=9694
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index b5921b7412..1c241efd1b 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -381,6 +381,9 @@ message_list_select (MessageList *message_list, int base_row,
int vrow, last;
ETree *et = message_list->tree;
+ if (!GTK_WIDGET_HAS_FOCUS (message_list))
+ gtk_widget_grab_focus (GTK_WIDGET (message_list));
+
switch (direction) {
case MESSAGE_LIST_SELECT_PREVIOUS:
last = -1;