gnome-commander r1879 - in trunk: . doc doc/C src



Author: epiotr
Date: Mon Jul 14 21:40:38 2008
New Revision: 1879
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1879&view=rev

Log:
 Use specified uri for connection (instead of previous building from 'ftp:', host, port, dir, user, pswd)

Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/doc/C/gnome-commander.xml
   trunk/doc/gnome-commander.1
   trunk/src/gnome-cmd-con-ftp.cc

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Jul 14 21:40:38 2008
@@ -8,6 +8,7 @@
  * Build fixes
 
 New features:
+ * Support for all GnomeVFS network protocols (including SSH+FTP and WebDAV)
  * User defined shortcuts to arbitrary programs
  * Copying selected URIs to clipboard with ALT+click on toolbar button
  * Revamped search dialog

Modified: trunk/doc/C/gnome-commander.xml
==============================================================================
--- trunk/doc/C/gnome-commander.xml	(original)
+++ trunk/doc/C/gnome-commander.xml	Mon Jul 14 21:40:38 2008
@@ -187,7 +187,7 @@
                 <para>Gnome MIME types</para>
             </listitem>
             <listitem>
-                <para>Remote connections using GnomeVFS: FTP/SFTP and SAMBA</para>
+                <para>Remote connections using GnomeVFS: FTP, SFTP (SSH+FTP), WebDAV and SMB/CIFS (Samba)</para>
             </listitem>
             <listitem>
                 <para>Right click mouse menu</para>
@@ -5932,6 +5932,9 @@
                 <para>
                     <itemizedlist>
                         <listitem>
+                            <para>Support for all GnomeVFS network protocols (including SSH+FTP and WebDAV)</para>
+                        </listitem>
+                        <listitem>
                             <para>User defined shortcuts to arbitrary programs</para>
                         </listitem>
                         <listitem>

Modified: trunk/doc/gnome-commander.1
==============================================================================
--- trunk/doc/gnome-commander.1	(original)
+++ trunk/doc/gnome-commander.1	Mon Jul 14 21:40:38 2008
@@ -105,7 +105,7 @@
 List of user defined applications (see "Programs" tab in the "Options" dialog).
 .TP
 .B ~/.gnome-commander/connections
-List of FTP servers (see "Connections" menu).
+List of remote connections (see "Connections" menu).
 .TP
 .B ~/.gnome-commander/ftp-servers
 List of FTP servers (deprecated).

Modified: trunk/src/gnome-cmd-con-ftp.cc
==============================================================================
--- trunk/src/gnome-cmd-con-ftp.cc	(original)
+++ trunk/src/gnome-cmd-con-ftp.cc	Mon Jul 14 21:40:38 2008
@@ -48,7 +48,7 @@
 
     GnomeVFSFileInfoOptions infoOpts = (GnomeVFSFileInfoOptions) (GNOME_VFS_FILE_INFO_FOLLOW_LINKS | GNOME_VFS_FILE_INFO_GET_MIME_TYPE | GNOME_VFS_FILE_INFO_FORCE_FAST_MIME_TYPE);
 
-    DEBUG('m', "FTP: Connecting to %s\n", gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_NONE));
+    DEBUG('m', "Connecting to %s\n", gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_NONE));
     con->base_info = gnome_vfs_file_info_new ();
 
     GnomeVFSResult res = gnome_vfs_get_file_info_uri (uri, con->base_info, infoOpts);
@@ -88,7 +88,7 @@
 
 static void ftp_open (GnomeCmdCon *con)
 {
-    DEBUG('m', "Opening FTP connection\n");
+    DEBUG('m', "Opening remote connection\n");
 
     if (!con->base_path)
     {
@@ -99,12 +99,6 @@
     con->state = CON_STATE_OPENING;
     con->open_result = CON_OPEN_IN_PROGRESS;
 
-    // GnomeCmdPath * path = gnome_cmd_plain_path_new (gnome_cmd_con_ftp_get_remote_dir (GNOME_CMD_CON_FTP (con)));
-    // GnomeCmdDir *dir = gnome_cmd_dir_new (con, path);
-
-    // gnome_cmd_con_set_default_dir (con, dir);
-    // gnome_cmd_con_set_cwd (con, dir);
-
     g_timeout_add (1, (GSourceFunc) start_get_file_info, con);
 }
 
@@ -137,19 +131,13 @@
 
 static GnomeVFSURI *ftp_create_uri (GnomeCmdCon *con, GnomeCmdPath *path)
 {
-    GnomeCmdConFtp *ftp_con = GNOME_CMD_CON_FTP (con);
+    g_return_val_if_fail (con->uri != NULL, NULL);
 
-    GnomeVFSURI *u0 = gnome_vfs_uri_new ("ftp:");
+    GnomeVFSURI *u0 = gnome_vfs_uri_new (con->uri);
     GnomeVFSURI *u1 = gnome_vfs_uri_append_path (u0, gnome_cmd_path_get_path (path));
 
     gnome_vfs_uri_unref (u0);
 
-    gnome_vfs_uri_set_host_name (u1, ftp_con->priv->host_name);
-    gnome_vfs_uri_set_host_port (u1, ftp_con->priv->host_port);
-    // gnome_cmd_con_ftp_set_remote_dir (u1, ftp_con->priv->remote_dir);
-    gnome_vfs_uri_set_user_name (u1, ftp_con->priv->user_name);
-    gnome_vfs_uri_set_password (u1, ftp_con->priv->pw);
-
     return u1;
 }
 
@@ -381,8 +369,8 @@
 
     con->priv->host_name = g_strdup (host_name);
 
-    GNOME_CMD_CON (con)->open_tooltip = g_strdup_printf (_("Opens the FTP connection to %s"), host_name);
-    GNOME_CMD_CON (con)->close_tooltip = g_strdup_printf (_("Closes the FTP connection to %s"), host_name);
+    GNOME_CMD_CON (con)->open_tooltip = g_strdup_printf (_("Opens remote connection to %s"), host_name);
+    GNOME_CMD_CON (con)->close_tooltip = g_strdup_printf (_("Closes remote connection to %s"), host_name);
 }
 
 



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