Fix shift+down, add pgup/pgdn/home/end
authorColin Leroy <colin@colino.net>
Sat, 24 Jul 2004 10:04:16 +0000 (10:04 +0000)
committerColin Leroy <colin@colino.net>
Sat, 24 Jul 2004 10:04:16 +0000 (10:04 +0000)
ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/summaryview.c

index becc1618ae255fa85e70613749ffee5279cf9be2..bec421ee2559db5d87ec650eb3385952e5b74481 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-24 [colin]     0.9.12cvs33.13
+
+       * src/summaryview.c
+               Fix Shift+Down, add Home/End/PgUp/PgDown
+
 2004-07-21 [colin]     0.9.12cvs33.12
 
        * src/prefs_common.c
index 086dc26a46de09e1f511202e8dc33a54258fe2f2..adba8163ada1f3880d4fd96c993f9c101cfd911f 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
@@ -66,3 +66,4 @@
 ( cvs diff -u -r 1.382.2.31 -r 1.382.2.32 src/compose.c; cvs diff -u -r 1.23.2.3 -r 1.23.2.4 src/crash.c; cvs diff -u -r 1.8.2.1 -r 1.8.2.2 src/export.c; cvs diff -u -r 1.13.2.2 -r 1.13.2.3 src/import.c; cvs diff -u -r 1.94.2.22 -r 1.94.2.23 src/messageview.c; cvs diff -u -r 1.83.2.12 -r 1.83.2.13 src/mimeview.c; cvs diff -u -r 1.5.2.1 -r 1.5.2.2 src/prefs_spelling.c; cvs diff -u -r 1.3.2.5 -r 1.3.2.6 src/prefs_themes.c; cvs diff -u -r 1.395.2.23 -r 1.395.2.24 src/summaryview.c; cvs diff -u -r 1.2.2.8 -r 1.2.2.9 src/gtk/filesel.c; cvs diff -u -r 1.1.4.1 -r 1.1.4.2 src/gtk/filesel.h; cvs diff -u -r 1.5.2.3 -r 1.5.2.4 src/gtk/pluginwindow.c; ) > 0.9.12cvs33.10.patchset
 ( cvs diff -u -r 1.2.2.9 -r 1.2.2.10 src/gtk/filesel.c; ) > 0.9.12cvs33.11.patchset
 ( cvs diff -u -r 1.204.2.16 -r 1.204.2.17 src/prefs_common.c; ) > 0.9.12cvs33.12.patchset
+( cvs diff -u -r 1.395.2.24 -r 1.395.2.25 src/summaryview.c; ) > 0.9.12cvs33.13.patchset
index 48d2ea4a39c63bde24ee26128ff86277167642fd..d2956c31b6e77d1a11b6bd161ef23ce1f9114dd9 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=33
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.12
+EXTRA_GTK2_VERSION=.13
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index ac8fcb6f0c0c84faf78bd449587feca557c968fb..8195bce8915f9f19bd7bcf05dabaf82ec349a804 100644 (file)
@@ -4355,7 +4355,27 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
                                /* Deprecated - what are the non-deprecated equivalents? */
                                if (gtk_ctree_node_is_visible(GTK_CTREE(ctree), next) != GTK_VISIBILITY_FULL)
                                        gtk_ctree_node_moveto(GTK_CTREE(ctree), next, 0, 0, 0);
-                                       
+                               summaryview->selected = next;
+                               return TRUE;
+                       }
+               }
+               break;
+       case GDK_Home:
+       case GDK_End:
+               if ((node = summaryview->selected) != NULL) {
+                       GtkCTreeNode *next = NULL;
+                       next = (event->keyval == GDK_Home)
+                                       ? gtk_ctree_node_nth(ctree, 0)
+                                       : gtk_ctree_node_nth(ctree, 
+                                               g_list_length(GTK_CLIST(ctree)->row_list)-1);
+                       if (next) {
+                               gtk_sctree_select_with_state
+                                       (GTK_SCTREE(ctree), next, event->state);
+
+                               /* Deprecated - what are the non-deprecated equivalents? */
+                               if (gtk_ctree_node_is_visible(GTK_CTREE(ctree), next) != GTK_VISIBILITY_FULL)
+                                       gtk_ctree_node_moveto(GTK_CTREE(ctree), next, 0, 0, 0);
+                               summaryview->selected = next;
                                return TRUE;
                        }
                }
@@ -4408,7 +4428,7 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
        default:
                break;
        }
-       return TRUE;
+       return FALSE;
 }
 
 static void quicksearch_execute_cb(QuickSearch *quicksearch, gpointer data)