[pan2/testing] * fixed last bug in flags not saving to headers
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing] * fixed last bug in flags not saving to headers
- Date: Sun, 4 Dec 2011 14:47:56 +0000 (UTC)
commit 5a56aa9f851fc5c5d8cfb286a441664ed7c79436
Author: Heinrich MÃller <henmull src gnome org>
Date: Sun Dec 4 15:22:21 2011 +0100
* fixed last bug in flags not saving to headers
pan/gui/header-pane.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index bfe36c3..6db8ce3 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -2117,6 +2117,7 @@ HeaderPane :: action_next_if (const ArticleTester& test, RowActionFunctor& actio
void
HeaderPane :: read_next_if (const ArticleTester& test)
{
+
GtkTreeView * v (GTK_TREE_VIEW(_tree_view));
ReadFunctor read (v, _prefs.get_flag("expand-selected-articles", false), _action_manager);
action_next_if (test, read);
@@ -2125,6 +2126,7 @@ HeaderPane :: read_next_if (const ArticleTester& test)
void
HeaderPane :: read_prev_if (const ArticleTester & test)
{
+
GtkTreeView * v (GTK_TREE_VIEW(_tree_view));
GtkTreeModel * m (GTK_TREE_MODEL(_tree_store));
ReadFunctor read (v, _prefs.get_flag("expand-selected-articles", false), _action_manager);
@@ -2134,6 +2136,7 @@ HeaderPane :: read_prev_if (const ArticleTester & test)
void
HeaderPane :: select_next_if (const ArticleTester& test)
{
+
GtkTreeView * v (GTK_TREE_VIEW(_tree_view));
SelectFunctor sel (v, _prefs.get_flag("expand-selected-articles", false));
action_next_if (test, sel);
@@ -2142,9 +2145,11 @@ HeaderPane :: select_next_if (const ArticleTester& test)
void
HeaderPane :: select_prev_if (const ArticleTester& test)
{
+
GtkTreeView * v (GTK_TREE_VIEW(_tree_view));
+ GtkTreeModel * m (GTK_TREE_MODEL(_tree_store));
SelectFunctor sel (v, _prefs.get_flag("expand-selected-articles", false));
- action_next_if (test, sel);
+ next_iterator (v, m, TreeIteratorPrev(), test, sel);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]