summaryrefslogtreecommitdiff
path: root/net/dc_gui/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-09-30 16:35:18 +0000
committerwiz <wiz@pkgsrc.org>2002-09-30 16:35:18 +0000
commit2f82e6ac22ec8c91178888de618af43961074a3f (patch)
tree202494129f0359f25c3bf951dc7fd66799e8d3be /net/dc_gui/patches
parent3642d7598c7cc56d83534c335fc53403f30f53bb (diff)
downloadpkgsrc-2f82e6ac22ec8c91178888de618af43961074a3f.tar.gz
Update to 0.62.
- fix a bug in GDL ctree which crashs dc_gui. Bug fixed by Raphael Scott. - new button added to start a dummy client (requires DCTC 0.83.5). - command line option added: -s. This command temporarily disables the autostart of clients which can be useful when an invalid hub has this flag set. - command line option added: -h. This flag requires a parameter, a hub address and port. When this option is given, the GUI will automatically start a new DCTC connected to the given hub address. When this option is given, you must also give the option -p (see below). - command line option added: -u. This flag requires a parameter, a dchub:// URL When this option is given, the GUI will automatically start a new DCTC connected to the given hub address. When this option is given, you must also give the option -p (see below). - command line option added: -p. This flag requires a parameter, the name of an existing profile to use. This option is needed for both -h and -u. - command line option added: -e. When this flag is specified, the program ends immediatly before displaying any window. This flag is useful with both -h and -u to avoid to have as many GUI as DCTC client. Also, de-internationalize a bit more.
Diffstat (limited to 'net/dc_gui/patches')
-rw-r--r--net/dc_gui/patches/patch-ad56
1 files changed, 55 insertions, 1 deletions
diff --git a/net/dc_gui/patches/patch-ad b/net/dc_gui/patches/patch-ad
index 380b5749525..4c8419703ff 100644
--- a/net/dc_gui/patches/patch-ad
+++ b/net/dc_gui/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.2 2002/09/23 11:48:29 wiz Exp $
+$NetBSD: patch-ad,v 1.3 2002/09/30 16:35:19 wiz Exp $
--- src/dctc_process.c.orig Sat Sep 21 17:27:49 2002
+++ src/dctc_process.c
@@ -23,6 +23,51 @@ $NetBSD: patch-ad,v 1.2 2002/09/23 11:48:29 wiz Exp $
else if(vsize>(1024.0*1024.0))
g_string_sprintf(fsize,"%.2fMB",vsize/(1024.0*1024.0));
else if(vsize>(1024.0))
+@@ -1143,7 +1143,7 @@ static void srest_fnc(const GString *s)
+ gchar *nw[6];
+
+ sscanf(size,"%lu",&fsize);
+- sprintf(buf_size,"%'lu",fsize);
++ sprintf(buf_size,"%lu",fsize);
+
+ sscanf(dl_ratio,"%u/%u",&free_slot,&ttl_slot);
+
+@@ -3105,7 +3105,7 @@ static void recursive_insert_new_user_cl
+
+ nw[UFLC_TREE_COL]=new_leaf->c.file.filename+cur_string_pos;
+ nw[UFLC_SIZE_COL]=bf;
+- sprintf(bf,"%'lu",new_leaf->c.file.file_size);
++ sprintf(bf,"%lu",new_leaf->c.file.file_size);
+
+ leaf_node=gtk_ctree_insert_node(ctree,*last_inserted_node,NULL,nw,5,NULL,NULL,NULL,NULL,TRUE,TRUE); /* it is a leaf */
+ gtk_ctree_node_set_row_data_full(ctree,leaf_node, new_leaf, (void*)free_user_file_cl_entry);
+@@ -3915,7 +3915,7 @@ void second_level_glst_end_fnc(GtkCTree
+ gtk_ctree_node_set_text(ctree,cnode,2,strv[i]+temp_str_len);
+ #else
+ char buf_size[64];
+- sprintf(buf_size,"%'lu",cur_size);
++ sprintf(buf_size,"%lu",cur_size);
+ gtk_ctree_node_set_text(ctree,cnode,2,buf_size);
+ #endif
+ gce->c.active_segment.remote_file_size=cur_size;
+@@ -4008,7 +4008,7 @@ static void second_level_add_newly_creat
+ unsigned long cur_size;
+
+ cur_size=strtoul(f4[2],NULL,10);
+- sprintf(buf_size,"%'lu",cur_size);
++ sprintf(buf_size,"%lu",cur_size);
+
+ ent_array[0]=f4[0];
+ ent_array[1]=f4[1];
+@@ -4054,7 +4054,7 @@ static void second_level_add_newly_creat
+ char out_range[512];
+ unsigned long lower, upper;
+ sscanf(f2[1],"[%lu;%lu]",&lower,&upper);
+- sprintf(out_range,"[%'lu : %'lu]",lower,upper);
++ sprintf(out_range,"[%lu : %lu]",lower,upper);
+
+ ent_array[0]="";
+ ent_array[1]=f2[0];
@@ -4168,7 +4168,7 @@ static void first_level_glst_end_fnc(Gtk
missing_bytes=gce_root->c.root.gdl_size-gce_root->c.root.received_bytes;
@@ -46,3 +91,12 @@ $NetBSD: patch-ad,v 1.2 2002/09/23 11:48:29 wiz Exp $
}
/* Estimated Time to Arrival computation: now (in second) + missing_bytes/spd */
+@@ -4263,7 +4263,7 @@ void glst_end_fnc(const GString *in)
+ unsigned long size_gdl=strtoul(k[2],NULL,10);
+
+ /* remove an entry with the same gdl_id */
+- sprintf(buf_size,"%'lu",size_gdl);
++ sprintf(buf_size,"%lu",size_gdl);
+
+ /* add a new entry in the root list */
+ gce=new_gdl_ct_entry_as_root( strtoul(k[0],NULL,10),