head 1.7; access; symbols pkgsrc-2013Q2:1.7.0.54 pkgsrc-2013Q2-base:1.7 pkgsrc-2012Q4:1.7.0.52 pkgsrc-2012Q4-base:1.7 pkgsrc-2011Q4:1.7.0.50 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q2:1.7.0.48 pkgsrc-2011Q2-base:1.7 pkgsrc-2009Q4:1.7.0.46 pkgsrc-2009Q4-base:1.7 pkgsrc-2008Q4:1.7.0.44 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.42 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.40 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.38 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.7.0.36 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.34 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.32 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.30 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.28 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.26 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.24 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.22 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.20 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.18 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.16 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.14 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.12 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.7.0.10 pkgsrc-2004Q4-base:1.7 pkgsrc-2004Q3:1.7.0.8 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.6 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.4 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.7.0.2 pkgsrc-2003Q4-base:1.7 netbsd-1-6-1:1.6.0.2 netbsd-1-6-1-base:1.6 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2003.06.10.13.23.12; author wiz; state dead; branches; next 1.6; 1.6 date 2002.12.17.19.14.43; author wiz; state Exp; branches; next 1.5; 1.5 date 2002.11.11.14.01.33; author wiz; state Exp; branches; next 1.4; 1.4 date 2002.11.03.21.32.25; author wiz; state Exp; branches; next 1.3; 1.3 date 2002.09.30.16.35.19; author wiz; state Exp; branches; next 1.2; 1.2 date 2002.09.23.11.48.29; author wiz; state Exp; branches; next 1.1; 1.1 date 2002.09.11.20.47.14; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.09.11.20.47.14; author wiz; state Exp; branches; next ; desc @@ 1.7 log @Remove dc_gui, superseded by dc_gui2. @ text @$NetBSD: patch-ad,v 1.6 2002/12/17 19:14:43 wiz Exp $ --- src/dctc_process.c.orig Sat Nov 16 08:10:25 2002 +++ src/dctc_process.c @@@@ -575,9 +575,9 @@@@ static void update_users_info(void) sprintf(buf,"%'d users (%'.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); /* NO_PRINTF_LOCAL support added */ #else if( (amount/(1024.0*1024.0*1024.0)) > 1024.0) - sprintf(buf,"%d users (%.2lfTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); else - sprintf(buf,"%d users (%.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); #endif w=get_widget_by_widget_name("users_info_label"); if(w==NULL) @ 1.6 log @Update to 0.66: - add a missing locale display format in upload list. Previously, the upload list size are displayed alternatively with locale format and without it. - fix bug in code detecting if C library can handle locale format in printf. - in public hub list, a hub existing in both neo-modus and dc++ list is not displayed twice. - The "connect" and the "public" labels blink when the hublist is received. The "connect" label no more blinks if the connect tab is the current tab. - Add support of the search time delay flag (DCTC 0.83.9). - Download tab is now after the Done tab, GDL tab becomes the first tab. - In find result and user list tab, when multiple rows are selected and have the same size, only the GDL with the same size are displayed at the first level of the popup menu. - fix incorrect charset in fr.po and sv.po @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update to 0.65. Changes: - Dutch translation of the GUI updated by Myckel Habets. - fix the compilation problem with Berkeley DB4. (open function of db4.0 has the same prototype as DB3 one but db4.1 does not). - fix erroneous tooltip of virtual share entry. - In find popup menu and user share list popup menu, only GDL having the same size as the selected rows are displayed in the first level of the menu. - In find popup menu and user share list popup menu, GDL entries were modified. GDL ID is not displayed and GDL size is displayed using locale format. - file size and upload position of the upload list is now displayed using locale format. - Support of new flag added: IGNORE_PUBMSG. - it is now possible to flag user from the public chat by selecting a line (or part of a line) containing a nickname. It is even possible to flag virtual user like Hub-Security. @ text @d3 1 a3 1 --- src/dctc_process.c.orig Sat Nov 9 17:00:01 2002 d5 12 a16 14 @@@@ -4100,11 +4100,11 @@@@ static void first_level_glst_end_fnc(Gtk spd=(double)(gce_root->c.root.last_10sec_speed)/10.0; /* compute the speed of the last 10 seconds */ if(spd<1024.0) { - g_string_sprintfa(spd_str,"[%.2lfB/s]",spd); + g_string_sprintfa(spd_str,"[%.2fB/s]",spd); } else if(spd<(1024.0*1024.0)) { - g_string_sprintfa(spd_str,"[%.2lfKB/s]",spd/1024.0); + g_string_sprintfa(spd_str,"[%.2fKB/s]",spd/1024.0); } /* Estimated Time to Arrival computation: now (in second) + missing_bytes/spd */ @ 1.4 log @Update to 0.63. Changes: - Dutch translation of the GUI updated by Myckel Habets. - Download date of share list added to cached share list. - Cached share lists can now be sorted by size and by date. - Add capability to generate automatically autoscan pattern for selected GDL. - fix compilation problem with Berkeley DB 4 (open function has a different prototype). - French translation of the GUI updated by Nicolas Le Gaillart. - GDL renaming part now works properly. - GDL end program support added. - fix the missing translation files problem in the RPM file. - find result list modified. The local filename column is gone and is replaced by a column with the connection speed of the user having the file. Currently, only speed of users on the same hub is displayed. - user list partially rewritten and is now displayed faster when reconnecting to a client. - button added to close all private chats in one click. - dc_gui does not hang anymore when it retrieves the hublist. The "connect" label will blink when the hublist is received. @ text @d3 1 a3 1 --- src/dctc_process.c.orig Sat Nov 2 18:01:44 2002 d5 1 a5 85 @@@@ -463,7 +463,7 @@@@ static void user__fnc(const GString *s) vsize=lu.share_size; if(vsize>(1024.0*1024.0*1024.0)) - g_string_sprintf(fsize,"%'.2fGB",vsize/(1024.0*1024.0*1024.0)); + g_string_sprintf(fsize,"%.2fGB",vsize/(1024.0*1024.0*1024.0)); else if(vsize>(1024.0*1024.0)) g_string_sprintf(fsize,"%.2fMB",vsize/(1024.0*1024.0)); else if(vsize>(1024.0)) @@@@ -565,9 +565,9 @@@@ static void update_users_info(void) } if( (amount/(1024.0*1024.0*1024.0)) > 1024.0) - sprintf(buf,"%'d users (%'.2lfTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); else - sprintf(buf,"%'d users (%'.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); w=get_widget_by_widget_name("users_info_label"); if(w==NULL) return; @@@@ -722,7 +722,7 @@@@ static void uinfo_fnc(const GString *s) fsize=g_string_new(""); if(vsize>(1024.0*1024.0*1024.0)) - g_string_sprintf(fsize,"%'.2fGB",vsize/(1024.0*1024.0*1024.0)); + g_string_sprintf(fsize,"%.2fGB",vsize/(1024.0*1024.0*1024.0)); else if(vsize>(1024.0*1024.0)) g_string_sprintf(fsize,"%.2fMB",vsize/(1024.0*1024.0)); else if(vsize>(1024.0)) @@@@ -1169,7 +1169,7 @@@@ static void srest_fnc(const GString *s) nickuinfo.cnx_type[0]='\0'; /* no information available */ } sscanf(size,"%lu",&fsize); - sprintf(buf_size,"%'lu",fsize); + sprintf(buf_size,"%lu",fsize); sscanf(dl_ratio,"%u/%u",&free_slot,&ttl_slot); @@@@ -2938,7 +2938,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); @@@@ -3783,7 +3783,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; @@@@ -3890,7 +3890,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]; @@@@ -3936,7 +3936,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]; @@@@ -4050,7 +4050,7 @@@@ static void first_level_glst_end_fnc(Gtk missing_bytes=gce_root->c.root.gdl_size-gce_root->c.root.received_bytes; spd_str=g_string_new(""); - g_string_sprintf(spd_str,"%'15lu (%.2f%%) ",gce_root->c.root.received_bytes,100.0*(double)gce_root->c.root.received_bytes/(double)gce_root->c.root.gdl_size); + g_string_sprintf(spd_str,"%15lu (%.2f%%) ",gce_root->c.root.received_bytes,100.0*(double)gce_root->c.root.received_bytes/(double)gce_root->c.root.gdl_size); cur_size=gce_root->c.root.received_bytes-gce_root->c.root.byte_offset; /* number of bytes downloaded */ duration=time(NULL)-gce_root->c.root.start_time; @@@@ -4058,11 +4058,11 @@@@ static void first_level_glst_end_fnc(Gtk a18 9 @@@@ -4145,7 +4145,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), @ 1.3 log @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. @ text @d3 1 a3 1 --- src/dctc_process.c.orig Sat Sep 21 17:27:49 2002 d5 10 a14 1 @@@@ -539,9 +539,9 @@@@ static void update_users_info(void) d26 1 a26 1 @@@@ -701,7 +701,7 @@@@ static void uinfo_fnc(const GString *s) d35 3 a37 3 @@@@ -1143,7 +1143,7 @@@@ static void srest_fnc(const GString *s) gchar *nw[6]; d44 1 a44 1 @@@@ -3105,7 +3105,7 @@@@ static void recursive_insert_new_user_cl d53 1 a53 1 @@@@ -3915,7 +3915,7 @@@@ void second_level_glst_end_fnc(GtkCTree d62 1 a62 1 @@@@ -4008,7 +4008,7 @@@@ static void second_level_add_newly_creat d71 1 a71 1 @@@@ -4054,7 +4054,7 @@@@ static void second_level_add_newly_creat d80 1 a80 1 @@@@ -4168,7 +4168,7 @@@@ static void first_level_glst_end_fnc(Gtk d89 1 a89 1 @@@@ -4176,11 +4176,11 @@@@ static void first_level_glst_end_fnc(Gtk d103 1 a103 1 @@@@ -4263,7 +4263,7 @@@@ void glst_end_fnc(const GString *in) @ 1.2 log @Update to 0.61: - GDL handling has been totally rewritten and is now more clean. - It is now possible to destroy GDL "rename at end" entry like any other one. - In the GDL list, sizes are now displayed using locale format. - search result handling has been partially rewritten and is now more clean. - The search result size is now displayed using locale format. - old style user list is no more supported, only new one is (the one using list cache). - user share lists handling has been partially rewritten and is now more clean. - The user share lists are now displayed using locale format. @ text @d26 45 d94 9 @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- src/dctc_process.c.orig Tue Jul 30 17:54:39 2002 d5 1 a5 1 @@@@ -535,9 +535,9 @@@@ static void update_users_info(void) d17 1 a17 1 @@@@ -697,7 +697,7 @@@@ static void uinfo_fnc(const GString *s) d26 2 a27 12 @@@@ -4140,11 +4140,11 @@@@ static void first_level_glst_end_fnc(Gtk #endif if(spd<1024.0) { - g_string_sprintfa(spd_str,"[%.2lfB/s]",spd); + g_string_sprintfa(spd_str,"[%.2fB/s]",spd); } else if(spd<(1024.0*1024.0)) { - g_string_sprintfa(spd_str,"[%.2lfKB/s]",spd/1024.0); + g_string_sprintfa(spd_str,"[%.2fKB/s]",spd/1024.0); } d29 20 a48 1 /* Estimated Time to Arrival computation: now (in second) + missing_bytes/spd */ @ 1.1.1.1 log @Initial import of dctc (Direct Connect Text Client) and its GUI, dc_gui (Direct Connect GUI). Requested by reed some months ago ;) DC is another file sharing protocol. @ text @@