[gnome-commander] Dropped gnome_cmd_file_selector_is_local()



commit a488fc198d77d3d97c06362e5c8c85eeddf94312
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jun 20 11:52:31 2010 +0200

    Dropped gnome_cmd_file_selector_is_local()

 src/gnome-cmd-file-selector.cc       |    6 ------
 src/gnome-cmd-file-selector.h        |    2 --
 src/gnome-cmd-prepare-xfer-dialog.cc |    2 +-
 3 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index d45702e..d30a259 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -928,12 +928,6 @@ void GnomeCmdFileSelector::update_connections()
 }
 
 
-gboolean gnome_cmd_file_selector_is_local (FileSelectorID fsID)
-{
-    return main_win->fs(fsID)->is_local();
-}
-
-
 void GnomeCmdFileSelector::update_style()
 {
     con_combo->update_style();
diff --git a/src/gnome-cmd-file-selector.h b/src/gnome-cmd-file-selector.h
index f7ff898..0e2925c 100644
--- a/src/gnome-cmd-file-selector.h
+++ b/src/gnome-cmd-file-selector.h
@@ -121,8 +121,6 @@ inline void GnomeCmdFileSelector::set_connection(GnomeCmdCon *con, GnomeCmdDir *
 GtkType gnome_cmd_file_selector_get_type ();
 GtkWidget *gnome_cmd_file_selector_new ();
 
-gboolean gnome_cmd_file_selector_is_local (FileSelectorID fsID);
-
 void gnome_cmd_file_selector_show_new_textfile_dialog (GnomeCmdFileSelector *fs);
 
 void gnome_cmd_file_selector_cap_paste (GnomeCmdFileSelector *fs);
diff --git a/src/gnome-cmd-prepare-xfer-dialog.cc b/src/gnome-cmd-prepare-xfer-dialog.cc
index 28dfd33..c937f84 100644
--- a/src/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/gnome-cmd-prepare-xfer-dialog.cc
@@ -66,7 +66,7 @@ static void on_ok (GtkButton *button, GnomeCmdPrepareXferDialog *dialog)
 
     if (user_path[0] == '/')
     {
-        if (gnome_cmd_file_selector_is_local (INACTIVE))   // hack to avoiding 'root' dir for mounted devices
+        if (main_win->fs(INACTIVE)->is_local())   // hack to avoiding 'root' dir for mounted devices
         {
             GnomeCmdCon *dev;
 



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