[gnome-commander] GnomeCmdFileSelector: update connection combo after tab switch
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdFileSelector: update connection combo after tab switch
- Date: Sun, 15 Aug 2010 20:09:03 +0000 (UTC)
commit 50668761c2b4303132537d589b7f439f9dfb005c
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Aug 15 22:08:26 2010 +0200
GnomeCmdFileSelector: update connection combo after tab switch
src/gnome-cmd-file-selector.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 4191e44..345c6f7 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -425,6 +425,7 @@ static void on_notebook_switch_page (GtkNotebook *notebook, GtkNotebookPage *pag
g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
GnomeCmdDir *prev_dir = fs->get_directory();
+ GnomeCmdCon *prev_con = fs->get_connection();
fs->list = fs->file_list(n);
fs->update_direntry();
@@ -433,6 +434,9 @@ static void on_notebook_switch_page (GtkNotebook *notebook, GtkNotebookPage *pag
if (prev_dir!=fs->get_directory())
g_signal_emit (fs, signals[DIR_CHANGED], 0, fs->get_directory());
+
+ if (prev_con!=fs->get_connection())
+ fs->con_combo->select_data(fs->get_connection());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]