[evolution/gnome-3-26] Bug 788231 - PageDown in Contacts List view mode misbehaves
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-26] Bug 788231 - PageDown in Contacts List view mode misbehaves
- Date: Wed, 27 Sep 2017 13:49:47 +0000 (UTC)
commit ed7a2cc43033ec580f2f7e99444bcde2ab6151fe
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 27 15:47:51 2017 +0200
Bug 788231 - PageDown in Contacts List view mode misbehaves
src/e-util/e-table.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/e-util/e-table.c b/src/e-util/e-table.c
index 685ee12..ee5d4bd 100644
--- a/src/e-util/e-table.c
+++ b/src/e-util/e-table.c
@@ -916,7 +916,7 @@ group_key_press (ETableGroup *etg,
{
gboolean return_val = FALSE;
GdkEventKey *key = (GdkEventKey *) event;
- gint y, row_local, col_local;
+ gint y, row_local = -1, col_local = -1;
GtkAdjustment *adjustment;
GtkScrollable *scrollable;
gdouble page_size;
@@ -930,7 +930,7 @@ group_key_press (ETableGroup *etg,
case GDK_KEY_Page_Down:
case GDK_KEY_KP_Page_Down:
page_size = gtk_adjustment_get_page_size (adjustment);
- upper = gtk_adjustment_get_value (adjustment);
+ upper = gtk_adjustment_get_upper (adjustment);
value = gtk_adjustment_get_value (adjustment);
y = CLAMP (value + (2 * page_size - 50), 0, upper);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]