[pan2] * 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] * fixed last bug in flags not saving to headers
- Date: Sun, 4 Dec 2011 14:47:15 +0000 (UTC)
commit bc7803590ebfdcbbbbdfa2f7dbe24253838193c8
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 2f2b57d..c6c21c8 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -2026,6 +2026,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);
@@ -2034,6 +2035,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);
@@ -2043,6 +2045,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);
@@ -2051,9 +2054,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]