diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-01 23:01:57 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-10-01 23:01:57 +0800 |
commit | 789887c10263b1f81f1dd91bf0d69e6ced1ee0e4 (patch) | |
tree | 7f5684f88192f37742e8f45ab5dafd1f6154a33c /calendar/gui/e-week-view.c | |
parent | 1172430c0cacb388cace35cba714432e493b8ca0 (diff) | |
download | gsoc2013-evolution-789887c10263b1f81f1dd91bf0d69e6ced1ee0e4.tar.gz gsoc2013-evolution-789887c10263b1f81f1dd91bf0d69e6ced1ee0e4.tar.zst gsoc2013-evolution-789887c10263b1f81f1dd91bf0d69e6ced1ee0e4.zip |
fixes 257649.
svn path=/trunk/; revision=30464
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 7da1a891a2..a3cd52bba3 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3169,10 +3169,15 @@ e_week_view_scroll_a_step (EWeekView *week_view, ECalViewMoveDirection direction case E_CAL_VIEW_MOVE_DOWN: new_value = adj->value + adj->step_increment; break; + case E_CAL_VIEW_MOVE_PAGE_UP: + new_value = adj->value - adj->page_size; + break; + case E_CAL_VIEW_MOVE_PAGE_DOWN: + new_value = adj->value + adj->page_size; + break; default: return; } - new_value = CLAMP (new_value, adj->lower, adj->upper - adj->page_size); gtk_adjustment_set_value (adj, new_value); } @@ -3735,6 +3740,18 @@ e_week_view_do_key_press (GtkWidget *widget, GdkEventKey *event) && !(event->state & GDK_MOD1_MASK)) { stop_emission = TRUE; switch (keyval) { + case GDK_Page_Up: + if (!week_view->multi_week_view) + e_week_view_scroll_a_step (week_view, E_CAL_VIEW_MOVE_UP); + else + e_week_view_scroll_a_step (week_view, E_CAL_VIEW_MOVE_PAGE_UP); + break; + case GDK_Page_Down: + if (!week_view->multi_week_view) + e_week_view_scroll_a_step (week_view, E_CAL_VIEW_MOVE_DOWN); + else + e_week_view_scroll_a_step (week_view, E_CAL_VIEW_MOVE_PAGE_DOWN); + break; case GDK_Up: e_week_view_cursor_key_up (week_view, view_type); break; |