diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-09 11:30:47 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-09 11:30:47 +0800 |
commit | 10b1fc590bf3204088215c2531a550197ee3db70 (patch) | |
tree | 39e45dee338a8ea2b632a5e019e04cb608099ad1 /mail/folder-browser.c | |
parent | 972b2fc3bba1eb144e0c200923e46261515c476f (diff) | |
download | gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.gz gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.zst gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.zip |
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
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 11 |
1 files changed, 7 insertions, 4 deletions
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; } |