changeset 433:77fffba5e170

2004-3-17 Brian Masney <masneyb@gftp.org> * lib/options.h src/gtk/transfer.c - added start file transfers option
author masneyb
date Wed, 17 Mar 2004 20:42:53 +0000
parents d7ff8d2d43aa
children f2e7b8218558
files ChangeLog lib/options.h src/gtk/transfer.c
diffstat 3 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 17 18:40:41 2004 +0000
+++ b/ChangeLog	Wed Mar 17 20:42:53 2004 +0000
@@ -1,4 +1,6 @@
 2004-3-17 Brian Masney <masneyb@gftp.org>
+	* lib/options.h src/gtk/transfer.c - added start file transfers option
+
 	* lib/ftpcommon.h lib/ftps.c - removed encrypted_connection variable
 	from the rfc959_parms structure
 
@@ -2316,7 +2318,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.239 2004/03/17 18:40:40 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.240 2004/03/17 20:42:49 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/options.h	Wed Mar 17 18:40:41 2004 +0000
+++ b/lib/options.h	Wed Mar 17 20:42:53 2004 +0000
@@ -88,6 +88,10 @@
   {"show_trans_in_title", N_("Show transfer status in title"), 
    gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 0,
    N_("Show the file transfer status in the titlebar"), GFTP_PORT_GTK, NULL},
+  {"start_transfers", N_("Start file transfers"), 
+   gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, 0,
+   N_("Automatically start the file transfers when they get queued"),
+   GFTP_PORT_GTK, NULL},
   {"cmd_in_gui", N_("Allow manual commands in GUI"), 
    gftp_option_type_checkbox, GINT_TO_POINTER(0), NULL, 0,
    N_("Allow entering manual commands in the GUI (functions like the text port)"), GFTP_PORT_GTK, NULL},
--- a/src/gtk/transfer.c	Wed Mar 17 18:40:41 2004 +0000
+++ b/src/gtk/transfer.c	Wed Mar 17 20:42:53 2004 +0000
@@ -766,7 +766,7 @@
 gint
 update_downloads (gpointer data)
 {
-  intptr_t do_one_transfer_at_a_time;
+  intptr_t do_one_transfer_at_a_time, start_transfers;
   GList * templist, * next;
   gftp_transfer * tdata;
 
@@ -805,8 +805,9 @@
 	    {
               gftp_lookup_global_option ("one_transfer", 
                                          &do_one_transfer_at_a_time);
+              gftp_lookup_global_option ("start_transfers", &start_transfers);
 
-	      if (!tdata->started && 
+	      if (!tdata->started && start_transfers &&
                  (num_transfers_in_progress == 0 || !do_one_transfer_at_a_time))
                 create_transfer (tdata);