diff options
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 16 | ||||
-rw-r--r-- | modules/mail/e-mail-shell-view-private.h | 3 |
2 files changed, 11 insertions, 8 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c index 58ef47a1a8..8d4fa9922e 100644 --- a/modules/mail/e-mail-shell-view-private.c +++ b/modules/mail/e-mail-shell-view-private.c @@ -73,10 +73,10 @@ mail_shell_view_folder_tree_key_press_event_cb (EMailShellView *mail_shell_view, /* <keyval> alone */ switch (event->keyval) { - case GDK_period: - case GDK_comma: - case GDK_bracketleft: - case GDK_bracketright: + case GDK_KEY_period: + case GDK_KEY_comma: + case GDK_KEY_bracketleft: + case GDK_KEY_bracketright: goto emit; default: @@ -86,8 +86,8 @@ mail_shell_view_folder_tree_key_press_event_cb (EMailShellView *mail_shell_view, ctrl: /* Ctrl + <keyval> */ switch (event->keyval) { - case GDK_period: - case GDK_comma: + case GDK_KEY_period: + case GDK_KEY_comma: goto emit; default: @@ -178,11 +178,11 @@ mail_shell_view_key_press_event_cb (EMailShellView *mail_shell_view, return FALSE; switch (event->keyval) { - case GDK_space: + case GDK_KEY_space: action = ACTION (MAIL_SMART_FORWARD); break; - case GDK_BackSpace: + case GDK_KEY_BackSpace: action = ACTION (MAIL_SMART_BACKWARD); break; diff --git a/modules/mail/e-mail-shell-view-private.h b/modules/mail/e-mail-shell-view-private.h index a8a86c5054..f023e1b263 100644 --- a/modules/mail/e-mail-shell-view-private.h +++ b/modules/mail/e-mail-shell-view-private.h @@ -66,6 +66,9 @@ #include "e-mail-shell-sidebar.h" #include "e-mail-shell-view-actions.h" +/* backward-compatibility cruft */ +#include "e-util/gtk-compat.h" + #define E_MAIL_SHELL_VIEW_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_MAIL_SHELL_VIEW, EMailShellViewPrivate)) |