* src/summaryview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 21 Jan 2004 23:03:52 +0000 (23:03 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 21 Jan 2004 23:03:52 +0000 (23:03 +0000)
GDK_Left should only switch to folderview when
when summaryview hscrollbar is at the leftmost
position (fixes bug #420, "Focus error")

ChangeLog.claws
configure.ac
src/summaryview.c

index 2db185c..2fade23 100644 (file)
@@ -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
index 1bb6231..950bee4 100644 (file)
@@ -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
index 26d6bc7..e071d21 100644 (file)
@@ -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;