diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-04-24 04:48:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-04-24 04:48:05 +0800 |
commit | 9b73ae5c7d2c016a3b1f07b1040355063b32814b (patch) | |
tree | a48d54626fcfcf00e9f96be00dce495c83514637 /mail/e-mail-reader.c | |
parent | ca691310d85f7a266d070cb004d3534215ac47d0 (diff) | |
download | gsoc2013-evolution-9b73ae5c7d2c016a3b1f07b1040355063b32814b.tar.gz gsoc2013-evolution-9b73ae5c7d2c016a3b1f07b1040355063b32814b.tar.zst gsoc2013-evolution-9b73ae5c7d2c016a3b1f07b1040355063b32814b.zip |
Miscellaneous bug fixes.
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 196f2f0323..dd8e24bd55 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -1658,20 +1658,17 @@ mail_reader_double_click_cb (EMailReader *reader, e_mail_reader_activate (reader, "mail-message-open"); } -static gint -mail_reader_key_press_cb (EMailReader *reader, - gint row, - ETreePath path, - gint col, - GdkEvent *event) +static gboolean +mail_reader_key_press_event_cb (EMailReader *reader, + GdkEventKey *event) { const gchar *action_name; - if ((event->key.state & GDK_CONTROL_MASK) != 0) + if ((event->state & GDK_CONTROL_MASK) != 0) goto ctrl; /* <keyval> alone */ - switch (event->key.keyval) { + switch (event->keyval) { case GDK_Delete: case GDK_KP_Delete: action_name = "mail-delete"; @@ -1714,7 +1711,7 @@ mail_reader_key_press_cb (EMailReader *reader, ctrl: /* Ctrl + <keyval> */ - switch (event->key.keyval) { + switch (event->keyval) { case GDK_period: action_name = "mail-next-unread"; break; @@ -1733,6 +1730,16 @@ exit: return TRUE; } +static gint +mail_reader_key_press_cb (EMailReader *reader, + gint row, + ETreePath path, + gint col, + GdkEvent *event) +{ + return mail_reader_key_press_event_cb (reader, &event->key); +} + static gboolean mail_reader_message_read_cb (EMailReader *reader) { @@ -2137,10 +2144,14 @@ e_mail_reader_init (EMailReader *reader) /* Connect signals. */ g_signal_connect_swapped ( - EM_FORMAT_HTML (html_display)->html, "button-release-event", + html, "button-release-event", G_CALLBACK (mail_reader_html_button_release_event_cb), reader); g_signal_connect_swapped ( + html, "key-press-event", + G_CALLBACK (mail_reader_key_press_event_cb), reader); + + g_signal_connect_swapped ( message_list, "message-selected", G_CALLBACK (mail_reader_message_selected_cb), reader); |