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.32; 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.10.03.11.44.40; 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-ac,v 1.6 2002/12/17 19:14:43 wiz Exp $ --- src/callbacks.c.orig Sun Dec 1 08:03:43 2002 +++ src/callbacks.c @@@@ -2,6 +2,13 @@@@ # include #endif +#ifdef __linux__ +#include +#else +#ifndef SEMVMX +#define SEMVMX 32767 /* semaphore maximum value */ +#endif +#endif #include #include #include @@@@ -14,7 +21,6 @@@@ #include #include #include -#include #include #include #include @@@@ -40,6 +46,10 @@@@ #include "find_result_clist.h" #include "user_file_list_clist.h" #include "ls_cache_clist.h" + +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif static void start_download_from_find_result_clist(void); static void reload_flagged_user_clist(int only_if_empty); @ 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/callbacks.c.orig Sat Nov 9 16:54:13 2002 d27 8 a34 7 @@@@ -1733,7 +1739,7 @@@@ on_find_entry_activate ( val=atof(gtk_entry_get_text(GTK_ENTRY(w))); - g_string_sprintfa(req,"%lf",scale*val); + g_string_sprintfa(req,"%f",scale*val); } d36 2 a37 10 w=get_widget_by_widget_name("find_result"); @@@@ -2975,7 +2981,7 @@@@ on_apply_pref_clicked ( } if(i==4) i=0; - g_string_sprintf(out,"/OFFSET %lf\n",strtod(v,NULL)*scale[i]); + g_string_sprintf(out,"/OFFSET %f\n",strtod(v,NULL)*scale[i]); send_data_to_dctc(out->str); } } @ 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/callbacks.c.orig Sun Nov 3 08:12:20 2002 d27 1 a27 1 @@@@ -1632,7 +1638,7 @@@@ on_find_entry_activate ( d36 1 a36 1 @@@@ -2875,7 +2881,7 @@@@ on_apply_pref_clicked ( a44 9 @@@@ -3447,7 +3453,7 @@@@ static void reload_ls_cache_clist(int ev LS_CACHE_CL_ENTRY *lcce; strftime(dl_time,sizeof(dl_time)-1,"%c",localtime(&(lsch.retrieve_time))); - sprintf(buf,"%'llu", lsch.share_size); + sprintf(buf,"%llu", lsch.share_size); nw[0]=obj->d_name; nw[1]=buf; @ 1.3 log @Simplify a bit by properly using CPPFLAGS and BUILDLINK_PREFIX.db4. @ text @d3 1 a3 1 --- src/callbacks.c.orig Tue Sep 24 18:25:08 2002 d27 1 a27 1 @@@@ -1631,7 +1637,7 @@@@ on_find_entry_activate ( d36 1 a36 1 @@@@ -2857,7 +2863,7 @@@@ on_apply_pref_clicked ( d45 2 a46 2 @@@@ -3429,7 +3435,7 @@@@ static void reload_ls_cache_clist(int ev nw[1]=buf; d48 1 a48 1 printf("%llX",lsch.share_size); d51 3 a53 3 gtk_clist_append(clst,nw); } } @ 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 @d3 1 a3 1 --- src/callbacks.c.orig Sat Sep 21 17:00:26 2002 d19 1 a19 1 @@@@ -14,11 +21,10 @@@@ a26 5 -#include +#include #include #include "callbacks.h" @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- src/callbacks.c.orig Sun Aug 25 10:28:02 2002 d32 1 a32 1 @@@@ -1383,7 +1389,7 @@@@ on_find_entry_activate ( d41 1 a41 1 @@@@ -2610,7 +2616,7 @@@@ on_apply_pref_clicked ( d50 1 a50 1 @@@@ -3226,7 +3232,7 @@@@ static void reload_ls_cache_clist(int ev @ 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 @@