aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-02-18 08:45:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-02-18 08:45:28 +0800
commite9dc381d3ace3404d0eafe94eb6da3b9a843abb8 (patch)
treec6a5b8a6f700513a889bec98adda02a7cdb68e21 /modules/mail
parent8b407ec081c4489d08b42159e0799cfb9deb4ba2 (diff)
downloadgsoc2013-evolution-e9dc381d3ace3404d0eafe94eb6da3b9a843abb8.tar.gz
gsoc2013-evolution-e9dc381d3ace3404d0eafe94eb6da3b9a843abb8.tar.zst
gsoc2013-evolution-e9dc381d3ace3404d0eafe94eb6da3b9a843abb8.zip
BugĀ 587014 - Magic space does not work as expected
Neither ETree::key-press nor ETableItem::key-press signal definitions specify a GSignalAccumulator that terminates the signal emission when a handler returns TRUE, and Evolution 2.29 connects multiple handlers to ETree::key-press. When the space key is pressed, the first handler implements the magic space bar behavior and returns TRUE, which should terminate signal emission but doesn't because there's no accumulator function on the signal. So the second handler runs and checks for other keys besides space. It returns FALSE since it didn't handle the key press. End result: emission site gets back FALSE (from the second handler) as the return value, so it thinks the key press was not handled at all and invokes the fallback handler -- e_selection_model_toggle_single_row() -- which -unselects- the newly selected row, making it appear the next unread message was never selected. Several other ETable-related signals that return "handled" flags also lack GSignalAccumulator functions. I've made a note to myself to fix those as well.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view-private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 8f426e51d7..ab2e3a7444 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -179,7 +179,7 @@ mail_shell_view_key_press_event_cb (EMailShellView *mail_shell_view,
return TRUE;
}
-static gint
+static gboolean
mail_shell_view_message_list_key_press_cb (EMailShellView *mail_shell_view,
gint row,
ETreePath path,