diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-18 06:39:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-18 06:39:59 +0800 |
commit | afe6f502c326350cc31d34646d5000a964321525 (patch) | |
tree | 9d9469a0ce33428e24e602fdbf87bc496864bc57 /widgets/misc/e-calendar-item.c | |
parent | b79bf3d187cabd11df74d2e6e414e41ae637f307 (diff) | |
download | gsoc2013-evolution-afe6f502c326350cc31d34646d5000a964321525.tar.gz gsoc2013-evolution-afe6f502c326350cc31d34646d5000a964321525.tar.zst gsoc2013-evolution-afe6f502c326350cc31d34646d5000a964321525.zip |
Use new GDK keysym names if available.
In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*.
I've added backward-compatibility macors to gtk-compat.h, which can be
dumped as soon as we require GTK+ >= 2.22.0.
Diffstat (limited to 'widgets/misc/e-calendar-item.c')
-rw-r--r-- | widgets/misc/e-calendar-item.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index f362046ee3..f5d2f870af 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -38,6 +38,9 @@ #include <e-util/e-util.h> #include <e-util/e-extensible.h> +/* backward-compatibility cruft */ +#include "e-util/gtk-compat.h" + static const gint e_calendar_item_days_in_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; @@ -1869,24 +1872,24 @@ e_calendar_item_key_press_event (ECalendarItem *calitem, GdkEvent *event) multi_selection = event->key.state & GDK_SHIFT_MASK; switch (keyval) { - case GDK_Up: + case GDK_KEY_Up: e_calendar_item_selection_add_days (calitem, -7, multi_selection); break; - case GDK_Down: + case GDK_KEY_Down: e_calendar_item_selection_add_days (calitem, 7, multi_selection); break; - case GDK_Left: + case GDK_KEY_Left: e_calendar_item_selection_add_days (calitem, -1, multi_selection); break; - case GDK_Right: + case GDK_KEY_Right: e_calendar_item_selection_add_days (calitem, 1, multi_selection); break; - case GDK_space: - case GDK_Return: + case GDK_KEY_space: + case GDK_KEY_Return: e_calendar_item_stop_selecting (calitem, event->key.time); break; default: |