gnome-commander r1830 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Thu Jun  5 20:28:51 2008
New Revision: 1830
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1830&view=rev

Log:
Yet another fix for full file path handling while copying/moving to the mounted devices

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
   branches/gcmd-1-3/src/gnome-cmd-file-selector.h
   branches/gcmd-1-3/src/gnome-cmd-prepare-xfer-dialog.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	Thu Jun  5 20:28:51 2008
@@ -1831,6 +1831,11 @@
 }
 
 
+gboolean gnome_cmd_file_selector_is_local (FileSelectorID fsID)
+{
+    return gnome_cmd_file_selector_is_local (gnome_cmd_main_win_get_fs (main_win, fsID));
+}
+
 void gnome_cmd_file_selector_update_style (GnomeCmdFileSelector *fs)
 {
     g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.h	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.h	Thu Jun  5 20:28:51 2008
@@ -111,6 +111,8 @@
     return gnome_cmd_con_is_local (gnome_cmd_file_selector_get_connection (fs));
 }
 
+gboolean gnome_cmd_file_selector_is_local (FileSelectorID fsID);
+
 void gnome_cmd_file_selector_update_style (GnomeCmdFileSelector *fs);
 
 void gnome_cmd_file_selector_show_mkdir_dialog (GnomeCmdFileSelector *fs);

Modified: branches/gcmd-1-3/src/gnome-cmd-prepare-xfer-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-prepare-xfer-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-prepare-xfer-dialog.cc	Thu Jun  5 20:28:51 2008
@@ -64,7 +64,7 @@
 
     if (user_path[0] == '/')
     {
-        if (gnome_cmd_file_is_local (GNOME_CMD_FILE (dialog->default_dest_dir)))   // hack to avoiding 'root' dir for mounted devices
+        if (gnome_cmd_file_selector_is_local (INACTIVE))   // hack to avoiding 'root' dir for mounted devices
         {
             GnomeCmdCon *dev;
 



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