[gnome-commander] tabs lock: start a new tab when middle click on file list



commit 6603bba86592a3abf431aa5db59013d2df065b84
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Feb 6 01:29:09 2011 +0100

    tabs lock: start a new tab when middle click on file list

 src/gnome-cmd-file-selector.cc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 4510504..ad547d5 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -476,7 +476,12 @@ static void on_list_list_clicked (GnomeCmdFileList *fl, GnomeCmdFile *f, GdkEven
 
             case 2:
                 if (gnome_cmd_data.middle_mouse_button_mode==GnomeCmdData::MIDDLE_BUTTON_GOES_UP_DIR)
-                    fs->goto_directory("..");
+                {
+                    if (fl->locked)
+                        fs->new_tab(gnome_cmd_dir_get_parent (fl->cwd));
+                    else
+                        fs->goto_directory("..");
+                }
                 else
                 {
                     if (f && f->is_dotdot)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]