* src/summaryview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 29 Dec 2002 01:12:28 +0000 (01:12 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 29 Dec 2002 01:12:28 +0000 (01:12 +0000)
set gtksctree's anchor correct (immediate execute
changes the tree's layout, and anchor points at
the incorrect row). fixes "[ 657233 ] multiple msg
delete sometimes off by 1".
we probably have to look for more tree layout /
anchor glitches.

ChangeLog.claws
configure.in
src/summaryview.c

index d4ee3414a1df3f861f5f4e6311d26684e924a2a8..7b26174f44ae8df85787d7f4cfab0e45cae67aab 100644 (file)
@@ -1,3 +1,13 @@
+2002-12-29 [alfons]    0.8.8claws20
+
+       * src/summaryview.c
+               set gtksctree's anchor correct (immediate execute
+               changes the tree's layout, and anchor points at 
+               the incorrect row). fixes "[ 657233 ] multiple msg 
+               delete sometimes off by 1".
+               we probably have to look for more tree layout /
+               anchor glitches.
+
 2002-12-29 [paul]      0.8.8claws19
 
        * src/summaryview.c
index 62b790a633edca6aeaaca4cf5bf76569bd8930f2..9867c254a4ca1859cae3cece7767dcaba9684c12 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws19
+EXTRA_VERSION=claws20
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index bf711a5fa6cf68ffa8ad2ffc572af59a4c7c1c64..9cb28465928367578db912eba810a523cba402f7 100644 (file)
@@ -3047,9 +3047,12 @@ void summary_delete(SummaryView *summaryview)
                                 FALSE);
        }
 
-       if (prefs_common.immediate_exec || item->stype == F_TRASH)
+       if (prefs_common.immediate_exec || item->stype == F_TRASH) {
                summary_execute(summaryview);
-       else
+               /* after deleting, the anchor may be at an invalid row
+                * so reset it to the node we found earlier */
+               gtk_sctree_set_anchor_row(GTK_SCTREE(ctree), node);
+       } else
                summary_status_show(summaryview);
 }