From 10b1fc590bf3204088215c2531a550197ee3db70 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 9 Jul 2000 03:30:47 +0000 Subject: Fix up the pageup/pagedown increment a bit. * folder-browser.c (etable_key): Fix up the pageup/pagedown increment a bit. svn path=/trunk/; revision=4001 --- mail/ChangeLog | 3 +++ mail/folder-browser.c | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index c780a4aae0..0598003c7d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2000-07-08 Dan Winship + * folder-browser.c (etable_key): Fix up the pageup/pagedown + increment a bit. + * folder-browser-factory.c (control_activate): Add a "Threaded Message List" item to the "View" menu. diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 5a051be15e..f4ec07f9ff 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -322,16 +322,19 @@ etable_key (ETable *table, int row, int col, GdkEvent *ev, FolderBrowser *fb) if (ev->key.keyval == GDK_space || ev->key.keyval == GDK_BackSpace) { GtkAdjustment *vadj; + gfloat page_size; vadj = e_scroll_frame_get_vadjustment (fb->mail_display->scroll); + page_size = vadj->page_size - vadj->step_increment; + if (ev->key.keyval == GDK_BackSpace) { - if (vadj->value > vadj->lower + vadj->page_size) - vadj->value -= vadj->page_size; + if (vadj->value > vadj->lower + page_size) + vadj->value -= page_size; else vadj->value = vadj->lower; } else { - if (vadj->value < vadj->upper - 2 * vadj->page_size) - vadj->value += vadj->page_size; + if (vadj->value < vadj->upper - vadj->page_size - page_size) + vadj->value += page_size; else vadj->value = vadj->upper - vadj->page_size; } -- cgit v1.2.3