From 849de3bf82cd70100bb62cff08cffd6d8df3797f Mon Sep 17 00:00:00 2001 From: Alfons Hoogervorst Date: Wed, 21 Jan 2004 23:03:52 +0000 Subject: [PATCH] * src/summaryview.c GDK_Left should only switch to folderview when when summaryview hscrollbar is at the leftmost position (fixes bug #420, "Focus error") --- ChangeLog.claws | 7 +++++++ configure.ac | 2 +- src/summaryview.c | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 2db185ce6..2fade2308 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,10 @@ +2004-01-21 [alfons] 0.9.8claws41 + + * src/summaryview.c + GDK_Left should only switch to folderview when + when summaryview hscrollbar is at the leftmost + position (fixes bug #420, "Focus error") + 2004-01-21 [paul] 0.9.8claws40 * sync with 0.9.8cvs4 diff --git a/configure.ac b/configure.ac index 1bb62311a..950bee4a5 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=8 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=40 +EXTRA_VERSION=41 if test $EXTRA_VERSION -eq 0; then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws else diff --git a/src/summaryview.c b/src/summaryview.c index 26d6bc785..e071d2185 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -4486,12 +4486,18 @@ static gint summary_key_pressed(GtkWidget *widget, GdkEventKey *event, GtkCTreeNode *node; MessageView *messageview; TextView *textview; + GtkAdjustment *sumadj; if (summary_is_locked(summaryview)) return TRUE; if (!event) return TRUE; switch (event->keyval) { case GDK_Left: /* Move focus */ + sumadj = gtk_scrolled_window_get_hadjustment + (GTK_SCROLLED_WINDOW(summaryview->scrolledwin)); + if (sumadj->lower != sumadj->value) + break; + /* FALLTHROUGH */ case GDK_Escape: gtk_widget_grab_focus(summaryview->folderview->ctree); return TRUE; -- 2.25.1