[gnome-commander] tabs: execute view.new_tab on clicked fs (previously: on active fs)



commit 8463049bc35bc42efc220a5095bbef3805a2fea2
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Jan 4 23:25:10 2011 +0100

    tabs: execute view.new_tab on clicked fs (previously: on active fs)

 src/gnome-cmd-user-actions.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 4c1e1c3..f726d2d 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1501,7 +1501,8 @@ void view_root (GtkMenuItem *menuitem, gpointer not_used)
 void view_new_tab (GtkMenuItem *menuitem, gpointer file_list)
 {
     GnomeCmdFileList *fl = file_list ? GNOME_CMD_FILE_LIST (file_list) : get_fl (ACTIVE);
-    get_fs (ACTIVE)->new_tab(fl->cwd);
+    GnomeCmdFileSelector *fs = GNOME_CMD_FILE_SELECTOR (gtk_widget_get_ancestor (*fl, GNOME_CMD_TYPE_FILE_SELECTOR));
+    fs->new_tab(fl->cwd);
 }
 
 



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