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



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

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

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-data.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-data.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-data.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-data.cc	Mon Jun  9 17:06:57 2008
@@ -454,7 +454,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]