gnome-commander r1835 - in trunk: . src



Author: epiotr
Date: Mon Jun  9 17:06:38 2008
New Revision: 1835
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1835&view=rev

Log:
Add GNOME Commander ftp site to remote servers fot first-time users

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-data.cc

Modified: trunk/src/gnome-cmd-data.cc
==============================================================================
--- trunk/src/gnome-cmd-data.cc	(original)
+++ trunk/src/gnome-cmd-data.cc	Mon Jun  9 17:06:38 2008
@@ -453,7 +453,13 @@
 
     g_free (path);
 
-    return fd!=NULL && g_list_length(gnome_cmd_con_list_get_all_ftp(data->priv->con_list))>prev_ftp_cons_no;
+    if (!g_list_length (gnome_cmd_con_list_get_all_ftp (data->priv->con_list)))
+    {
+        GnomeCmdConFtp *server = gnome_cmd_con_ftp_new (_("GNOME Commander"), "ftp://anonymous ftp gnome org/pub/GNOME/sources/gnome-commander/");
+        gnome_cmd_con_list_add_ftp (data->priv->con_list, server);
+    }
+
+    return fd!=NULL && g_list_length (gnome_cmd_con_list_get_all_ftp (data->priv->con_list))>prev_ftp_cons_no;
 }
 
 



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