From 898fcc91b30347f0d3daf8b7d0d6f23a9ede6ffe Mon Sep 17 00:00:00 2001
From: Janek Kozicki <janek_listy@wp.pl>
Date: Fri, 21 May 2010 23:57:47 +0200
Subject: [PATCH 9541/9542] added info whether enter was pressed on an entry
---
src/tree.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/tree.c b/src/tree.c
index e99b669..6055b41 100644
a
|
b
|
tree_event (WTree * tree, int y) |
534 | 534 | } |
535 | 535 | |
536 | 536 | static void |
537 | | tree_chdir_sel (WTree * tree) |
| 537 | tree_chdir_sel (WTree * tree, gboolean enter_key_was_pressed) |
538 | 538 | { |
539 | 539 | if (!tree->is_panel) |
540 | 540 | return; |
… |
… |
static void |
555 | 555 | maybe_chdir (WTree * tree) |
556 | 556 | { |
557 | 557 | if (xtree_mode && tree->is_panel && is_idle ()) |
558 | | tree_chdir_sel (tree); |
| 558 | tree_chdir_sel (tree, FALSE); |
559 | 559 | } |
560 | 560 | |
561 | 561 | /* Mouse callback */ |
… |
… |
event_callback (Gpm_Event * event, void *data) |
597 | 597 | tree_event (tree, event->y); |
598 | 598 | if ((event->type & (GPM_UP | GPM_DOUBLE)) == (GPM_UP | GPM_DOUBLE)) |
599 | 599 | { |
600 | | tree_chdir_sel (tree); |
| 600 | tree_chdir_sel (tree, TRUE); |
601 | 601 | } |
602 | 602 | } |
603 | 603 | return MOU_NORMAL; |
… |
… |
tree_execute_cmd (WTree * tree, unsigned long command) |
973 | 973 | tree_move_pgdn (tree); |
974 | 974 | break; |
975 | 975 | case CK_TreeOpen: |
976 | | tree_chdir_sel (tree); |
| 976 | tree_chdir_sel (tree, TRUE); |
977 | 977 | break; |
978 | 978 | case CK_TreeRescan: |
979 | 979 | tree_rescan (tree); |
… |
… |
find_tree (struct Dlg_head *h) |
1177 | 1177 | { |
1178 | 1178 | return (WTree *) find_widget_type (h, tree_callback); |
1179 | 1179 | } |
1180 | | |