[gnome-commander] tab lock: open new tab for CTRL+\ (view.root)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tab lock: open new tab for CTRL+\ (view.root)
- Date: Sat, 26 Feb 2011 21:29:46 +0000 (UTC)
commit ad4d23d174bd2772a6a419da602d15cc2800ef0d
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Feb 26 22:28:50 2011 +0100
tab lock: open new tab for CTRL+\ (view.root)
src/gnome-cmd-user-actions.cc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 334cafd..36a2ea9 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1515,7 +1515,13 @@ void view_home (GtkMenuItem *menuitem, gpointer not_used)
void view_root (GtkMenuItem *menuitem, gpointer not_used)
{
- get_fl (ACTIVE)->goto_directory("/");
+ GnomeCmdFileSelector *fs = get_fs (ACTIVE);
+ GnomeCmdFileList *fl = fs->file_list();
+
+ if (fl->locked)
+ fs->new_tab(gnome_cmd_dir_new (fl->con, gnome_cmd_con_create_path (fl->con, "/")));
+ else
+ fs->goto_directory("/");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]