[gnome-commander] tabs lock: start a new tab when click on 'Go to' button in search dialog
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tabs lock: start a new tab when click on 'Go to' button in search dialog
- Date: Fri, 15 Apr 2011 18:15:31 +0000 (UTC)
commit 477c69d95ee1c61f7ac12a47bf68611425fafe02
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Apr 15 20:13:22 2011 +0200
tabs lock: start a new tab when click on 'Go to' button in search dialog
src/gnome-cmd-search-dialog.cc | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index d1826aa..8d1c3d6 100755
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -610,9 +610,14 @@ static void on_goto (GtkButton *button, GnomeCmdSearchDialog *dialog)
gchar *fpath = f->get_path();
gchar *dpath = g_path_get_dirname (fpath);
- GnomeCmdFileList *fl = main_win->fs(ACTIVE)->file_list();
- fl->goto_directory(dpath);
- fl->focus_file(f->get_name(), TRUE);
+ GnomeCmdFileSelector *fs = main_win->fs(ACTIVE);
+
+ if (fs->file_list()->locked)
+ fs->new_tab(f->get_parent_dir());
+ else
+ fs->file_list()->goto_directory(dpath);
+
+ fs->file_list()->focus_file(f->get_name(), TRUE);
g_free (fpath);
g_free (dpath);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]