Ticket #2216: 0001-ticket-2216-done-clicking-on-dirs-in-tree-view-will-.patch

File 0001-ticket-2216-done-clicking-on-dirs-in-tree-view-will-.patch, 1.2 KB (added by Janek Kozicki, 12 years ago)

done

  • src/tree.c

    From 2b83e5bdadc3540770111c08ba55368c667e7ef5 Mon Sep 17 00:00:00 2001
    From: Janek Kozicki <janek_listy@wp.pl>
    Date: Sat, 22 May 2010 05:58:43 +0200
    Subject: [PATCH] ticket 2216 done: clicking on dirs in tree view will refresh the display
    
    ---
     src/tree.c |    7 +++++++
     1 files changed, 7 insertions(+), 0 deletions(-)
    
    diff --git a/src/tree.c b/src/tree.c
    index 09b2d95..cc0e0ea 100644
    a b struct WTree 
    9292 
    9393/* Forwards */ 
    9494static void tree_rescan (void *data); 
     95static void tree_chdir_sel (WTree * tree, gboolean enter_key_was_pressed, gboolean mouse_clicked); 
    9596 
    9697static tree_entry * 
    9798back_ptr (tree_entry * ptr, int *count) 
    tree_move_to_bottom (WTree * tree) 
    525526static void 
    526527tree_event (WTree * tree, int y) 
    527528{ 
     529    /* we want to refresh even if Active / xtree_mode is off */ 
     530    gboolean refresh_always_tmp; 
    528531    if (tree->tree_shown[y]) 
    529532    { 
    530533        tree->selected_ptr = tree->tree_shown[y]; 
    531534        tree->topdiff = y; 
    532535    } 
     536    refresh_always_tmp = xtree_mode; 
     537    xtree_mode = TRUE; 
     538    tree_chdir_sel (tree, FALSE, TRUE); 
     539    xtree_mode = refresh_always_tmp; 
    533540    show_tree (tree); 
    534541} 
    535542