aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-09 11:30:47 +0800
committerDan Winship <danw@src.gnome.org>2000-07-09 11:30:47 +0800
commit10b1fc590bf3204088215c2531a550197ee3db70 (patch)
tree39e45dee338a8ea2b632a5e019e04cb608099ad1 /mail
parent972b2fc3bba1eb144e0c200923e46261515c476f (diff)
downloadgsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar
gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.gz
gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.bz2
gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.lz
gsoc2013-evolution-10b1fc590bf3204088215c2531a550197ee3db70.tar.xz
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')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/folder-browser.c11
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 <danw@helixcode.com>
+ * 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;
}