From: Alfons Hoogervorst Date: Sat, 6 Oct 2001 10:39:17 +0000 (+0000) Subject: fix bug of selection of last inserted tree node, not necessarily the last displayed... X-Git-Tag: Release_0_6_4claws12~74 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=191d5899a7423a1d8233f077b4ed4f6880915a83 fix bug of selection of last inserted tree node, not necessarily the last displayed node --- diff --git a/ChangeLog.claws b/ChangeLog.claws index 00bdf512c..396850331 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,10 @@ +2001-10-06 [alfons] 0.6.2.claws22 + + * src/summaryview.c + fix bug with summary view selecting last *inserted* + node instead of last *visible* node. remember we + work with a tree + 2001-10-06 [paul] 0.6.2claws21 * po/pt_BR.po diff --git a/configure.in b/configure.in index 04181cd68..12a876df5 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=6 MICRO_VERSION=2 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws21 +EXTRA_VERSION=claws22 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl diff --git a/src/summaryview.c b/src/summaryview.c index 18501a178..ba8ad611b 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -922,8 +922,11 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item, else node = summary_find_next_unread_msg(summaryview, NULL); - if (node == NULL && GTK_CLIST(ctree)->row_list != NULL) - node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list_end); + if (node == NULL && GTK_CLIST(ctree)->row_list != NULL) { + /* Get the last visible node on screen */ + /* FIXME: huh, what happens if node is null? that allowed?? */ + node = gtk_ctree_node_nth(ctree, GTK_CLIST(ctree)->rows - 1); + } if (prefs_common.open_unread_on_enter) { summary_unlock(summaryview); summary_select_node(summaryview, node, TRUE);