[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/utility autotrans.c,1.1.1.1,1.2 middl
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/utility autotrans.c,1.1.1.1,1.2 middle.c,1.1.1.1,1.2 notes.c,1.1.1.1,1.2 rainbow.c,1.1.1.1,1.2 |
Date: |
Fri, 27 Dec 2002 11:46:54 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/utility
In directory subversions:/tmp/cvs-serv26423/modules/utility
Modified Files:
autotrans.c middle.c notes.c rainbow.c
Log Message:
big commit, see ChangeLog
Index: autotrans.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/utility/autotrans.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- autotrans.c 23 Dec 2002 22:05:01 -0000 1.1.1.1
+++ autotrans.c 27 Dec 2002 16:46:52 -0000 1.2
@@ -127,7 +127,7 @@
il->widget.entry.label = strdup(_("My language code:"));
il->type=EB_INPUT_ENTRY;
- printf("Auto-trans initialised\n");
+ eb_debug(DBG_MOD, "Auto-trans initialised\n");
outgoing_message_filters=g_list_append(outgoing_message_filters,
&translate_out);
incoming_message_filters=g_list_append(incoming_message_filters,
&translate_in);
@@ -135,13 +135,13 @@
/* the following is adapted from notes.c */
if((tag1=eb_add_menu_item(_("Set Language"), EB_CHAT_WINDOW_MENU,
language_select, ebmCONTACTDATA, NULL))==NULL) {
- fprintf(stderr, "Error! Unable to add Language menu to chat
window menu\n");
+ eb_debug(DBG_MOD,"Error! Unable to add Language menu to chat
window menu\n");
return(-1);
}
if((tag2=eb_add_menu_item(_("Set Language"), EB_CONTACT_MENU,
language_select, ebmCONTACTDATA, NULL))==NULL) {
eb_remove_menu_item(EB_CHAT_WINDOW_MENU, tag1);
- fprintf(stderr, "Error! Unable to add Language menu to contact
menu\n");
+ eb_debug(DBG_MOD,"Error! Unable to add Language menu to
contact menu\n");
return(-1);
}
@@ -152,7 +152,7 @@
{
int result=0;
- printf("Auto-trans shutting down\n");
+ eb_debug(DBG_MOD,"Auto-trans shutting down\n");
outgoing_message_filters=g_list_remove(outgoing_message_filters,
&translate_out);
incoming_message_filters=g_list_remove(incoming_message_filters,
&translate_in);
@@ -261,11 +261,11 @@
g_snprintf(buf, 2048, "rm /tmp/.eb.%s.translator -f ; wget -O
/tmp/.eb.%s.translator
'http://world.altavista.com/sites/gben/pos/babelfish/tr?tt=urltext&lp=%s_%s&urltext=%s'",
getenv("USER"), getenv("USER"), from, to, string);
- printf("Running command line:\n%s\n", buf);
+ eb_debug(DBG_MOD,"Running command line:\n%s\n", buf);
if(system(buf)!=0)
{
- printf("COULD NOT TRANSLATE: %s\n", ostring);
+ eb_debug(DBG_MOD,"COULD NOT TRANSLATE: %s\n", ostring);
free(string);
return strdup(ostring);
}
@@ -274,7 +274,7 @@
if((dat=fopen(buf, "r"))==NULL)
{
- printf("COULD NOT TRANSLATE: %s\n", ostring);
+ eb_debug(DBG_MOD,"COULD NOT TRANSLATE: %s\n", ostring);
free(string);
return strdup(ostring);
}
@@ -297,7 +297,7 @@
if(!strcmp(lastfew, "</TE"))
{
- printf("Found end\n");
+ eb_debug(DBG_MOD,"Found end\n");
if (pos >= 5) {
buf[pos-4]='\0';
printing++;
@@ -313,7 +313,7 @@
if(!strcmp(lastfew, "UAL>") || !strcmp(lastfew, "AL\">"))
{
printing=1;
- printf("Found start\n");
+ eb_debug(DBG_MOD,"Found start\n");
}
}
@@ -321,17 +321,17 @@
if(printing<2)
{
- printf("TRANSLATION FAILED: %s, printing=%d\n", ostring, printing);
+ eb_debug(DBG_MOD,"TRANSLATION FAILED: %s, printing=%d\n", ostring,
printing);
free(string);
return strdup(ostring);
}
- printf("Translated %s to %s\n", string, buf);
+ eb_debug(DBG_MOD,"Translated %s to %s\n", string, buf);
free(string);
result = Utf8ToStr(buf);
- printf("%s\n", result);
+ eb_debug(DBG_MOD,"%s\n", result);
return result;
}
Index: middle.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/utility/middle.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- middle.c 23 Dec 2002 22:05:01 -0000 1.1.1.1
+++ middle.c 27 Dec 2002 16:46:52 -0000 1.2
@@ -79,7 +79,7 @@
il->widget.entry.label = strdup(_("Enable L33t-speak conversion"));
il->type=EB_INPUT_CHECKBOX;
- printf("L33tSp33k initialised\n");
+ eb_debug(DBG_MOD,"L33tSp33k initialised\n");
outgoing_message_filters=g_list_append(outgoing_message_filters,
&plstripHTML);
incoming_message_filters=g_list_append(incoming_message_filters,
&plstripHTML);
@@ -89,7 +89,7 @@
int middle_finish()
{
- printf("L33tSp33k shutting down\n");
+ eb_debug(DBG_MOD,"L33tSp33k shutting down\n");
outgoing_message_filters=g_list_remove(outgoing_message_filters,
&plstripHTML);
incoming_message_filters=g_list_remove(outgoing_message_filters,
&plstripHTML);
Index: notes.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/utility/notes.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- notes.c 23 Dec 2002 22:05:00 -0000 1.1.1.1
+++ notes.c 27 Dec 2002 16:46:52 -0000 1.2
@@ -88,16 +88,16 @@
input_list * il = g_new0(input_list, 1);
int result=0;
- fprintf(stderr, "notes init\n");
+ eb_debug(DBG_MOD,"notes init\n");
notes_tag1=eb_add_menu_item("Notes", EB_CHAT_WINDOW_MENU,
notes_feature, ebmCONTACTDATA, NULL);
if(!notes_tag1) {
- fprintf(stderr, "Error! Unable to add Notes menu to chat
window menu\n");
+ eb_debug(DBG_MOD,"Error! Unable to add Notes menu to chat
window menu\n");
return(-1);
}
notes_tag2=eb_add_menu_item("Notes", EB_CONTACT_MENU, notes_feature,
ebmCONTACTDATA, NULL);
if(!notes_tag2) {
result=eb_remove_menu_item(EB_CHAT_WINDOW_MENU, notes_tag1);
- fprintf(stderr, "Error! Unable to add Notes menu to contact
menu\n");
+ eb_debug(DBG_MOD,"Error! Unable to add Notes menu to contact
menu\n");
return(-1);
}
g_snprintf(notes_dir, NAME_MAX, "%s/notes", eb_config_dir());
@@ -144,7 +144,7 @@
if(IS_ebmContactData(data))
ecd=(ebmContactData *)data;
else { /* This should never happen, unless something is horribly wrong
*/
- fprintf(stderr, "*** Warning *** Unexpected ebmCallbackData
type returned!\n");
+ eb_debug(DBG_MOD,"*** Warning *** Unexpected ebmCallbackData
type returned!\n");
return;
}
eb_debug(DBG_MOD, "contact: %s remote_account: %s\n", ecd->contact,
ecd->remote_account);
Index: rainbow.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/utility/rainbow.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- rainbow.c 23 Dec 2002 22:05:01 -0000 1.1.1.1
+++ rainbow.c 27 Dec 2002 16:46:52 -0000 1.2
@@ -128,7 +128,7 @@
il->widget.entry.label = strdup(_("Ending B value"));
il->type=EB_INPUT_ENTRY;
- printf("Rainbow initialised\n");
+ eb_debug (DBG_MOD, "Rainbow initialised\n");
outgoing_message_filters=g_list_append(outgoing_message_filters, &dorainbow);
@@ -137,7 +137,7 @@
int rainbow_finish()
{
- printf("Rainbow shutting down\n");
+ eb_debug (DBG_MOD,"Rainbow shutting down\n");
outgoing_message_filters=g_list_remove(outgoing_message_filters, &dorainbow);
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/utility autotrans.c,1.1.1.1,1.2 middle.c,1.1.1.1,1.2 notes.c,1.1.1.1,1.2 rainbow.c,1.1.1.1,1.2,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.1.1.1,1.2
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/importers giles_smiles.c,1.1.1.1,1.2 import_gaim.c,1.1.1.1,1.2 import_gnomeicu.c,1.1.1.1,1.2 importlicq.c,1.1.1.1,1.2smileysc.c,1.1.1.1,1.2
- Previous by thread:
[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.1.1.1,1.2
- Next by thread:
[Ayttm-commits] CVS: ayttm/modules/importers giles_smiles.c,1.1.1.1,1.2 import_gaim.c,1.1.1.1,1.2 import_gnomeicu.c,1.1.1.1,1.2 importlicq.c,1.1.1.1,1.2smileysc.c,1.1.1.1,1.2
- Index(es):