Ticket #2214: 0001-ticket-2214-DONE-Lazy-Active-option-added.patch

File 0001-ticket-2214-DONE-Lazy-Active-option-added.patch, 1.8 KB (added by Janek Kozicki, 15 years ago)

fix

  • src/tree.c

    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) 
    986986static void 
    987987tree_toggle_navig (WTree * tree) 
    988988{ 
    989     tree_navigation_flag = !tree_navigation_flag; 
     989    xtree_mode = !xtree_mode; 
    990990    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); 
    993993} 
    994994 
    995995static cb_ret_t 
    tree_callback (Widget * w, widget_msg_t msg, int parm) 
    11431143        buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), tree_map, (Widget *) tree); 
    11441144        buttonbar_set_label (b, 2, Q_ ("ButtonBar|Rescan"), tree_map, (Widget *) tree); 
    11451145        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); 
    11481148        buttonbar_set_label (b, 5, Q_ ("ButtonBar|Copy"), tree_map, (Widget *) tree); 
    11491149        buttonbar_set_label (b, 6, Q_ ("ButtonBar|RenMov"), tree_map, (Widget *) tree); 
    11501150#if 0