From cc8abc0a153c987afa957ed2ce25816143d29235 Mon Sep 17 00:00:00 2001
From: Janek Kozicki <janek_listy@wp.pl>
Date: Sat, 22 May 2010 02:31:40 +0200
Subject: [PATCH] ticket 2214 DONE Lazy/Active option added
---
src/tree.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/tree.c b/src/tree.c
index bf69eec..09b2d95 100644
a
|
b
|
tree_start_search (WTree * tree) |
986 | 986 | static void |
987 | 987 | tree_toggle_navig (WTree * tree) |
988 | 988 | { |
989 | | tree_navigation_flag = !tree_navigation_flag; |
| 989 | xtree_mode = !xtree_mode; |
990 | 990 | buttonbar_set_label (find_buttonbar (tree->widget.parent), 4, |
991 | | tree_navigation_flag ? Q_ ("ButtonBar|Static") |
992 | | : Q_ ("ButtonBar|Dynamc"), tree_map, (Widget *) tree); |
| 991 | xtree_mode ? Q_("ButtonBar|Active") : Q_("ButtonBar|Lazy"), |
| 992 | tree_map, (Widget *) tree); |
993 | 993 | } |
994 | 994 | |
995 | 995 | static cb_ret_t |
… |
… |
tree_callback (Widget * w, widget_msg_t msg, int parm) |
1143 | 1143 | buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), tree_map, (Widget *) tree); |
1144 | 1144 | buttonbar_set_label (b, 2, Q_ ("ButtonBar|Rescan"), tree_map, (Widget *) tree); |
1145 | 1145 | buttonbar_set_label (b, 3, Q_ ("ButtonBar|Forget"), tree_map, (Widget *) tree); |
1146 | | buttonbar_set_label (b, 4, tree_navigation_flag ? Q_ ("ButtonBar|Static") |
1147 | | : Q_ ("ButtonBar|Dynamc"), tree_map, (Widget *) tree); |
| 1146 | buttonbar_set_label (b, 4, xtree_mode ? Q_("ButtonBar|Active") : Q_("ButtonBar|Lazy"), |
| 1147 | tree_map, (Widget *) tree); |
1148 | 1148 | buttonbar_set_label (b, 5, Q_ ("ButtonBar|Copy"), tree_map, (Widget *) tree); |
1149 | 1149 | buttonbar_set_label (b, 6, Q_ ("ButtonBar|RenMov"), tree_map, (Widget *) tree); |
1150 | 1150 | #if 0 |