[gnome-commander] tab lock: open new tab for CTRL+F (connections.open)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tab lock: open new tab for CTRL+F (connections.open)
- Date: Sun, 27 Feb 2011 22:24:13 +0000 (UTC)
commit 1cbc00c7c4dcb90f89c50f047ced7690d6700469
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Feb 27 23:23:40 2011 +0100
tab lock: open new tab for CTRL+F (connections.open)
src/gnome-cmd-remote-dialog.cc | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 40949ce..17afa89 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -114,9 +114,13 @@ inline void set_server (GtkListStore *store, GtkTreeIter *iter, GnomeCmdConFtp *
static gboolean do_connect_real (GnomeCmdConFtp *server)
{
GnomeCmdCon *con = GNOME_CMD_CON (server);
+ GnomeCmdFileSelector *fs = main_win->fs(ACTIVE);
+ GnomeCmdFileList *fl = fs->file_list();
- main_win->fs(ACTIVE)->set_connection(con);
- // gnome_cmd_dir_new (con, gnome_cmd_con_create_path (con, G_DIR_SEPARATOR_S)));
+ if (fl->locked)
+ fl = (GnomeCmdFileList *) gtk_bin_get_child (GTK_BIN (fs->new_tab())); // new_tab() retrieves scrolled_window, we must use gtk_bin_get_child() to get fl
+
+ fl->set_connection(con);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]