You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(106) |
Oct
(334) |
Nov
(246) |
Dec
(145) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(42) |
Feb
(53) |
Mar
(232) |
Apr
(109) |
May
(137) |
Jun
(63) |
Jul
(26) |
Aug
(263) |
Sep
(193) |
Oct
(507) |
Nov
(440) |
Dec
(241) |
2003 |
Jan
(567) |
Feb
(195) |
Mar
(504) |
Apr
(481) |
May
(524) |
Jun
(522) |
Jul
(594) |
Aug
(502) |
Sep
(643) |
Oct
(508) |
Nov
(430) |
Dec
(377) |
2004 |
Jan
(361) |
Feb
(251) |
Mar
(219) |
Apr
(499) |
May
(461) |
Jun
(419) |
Jul
(314) |
Aug
(519) |
Sep
(416) |
Oct
(247) |
Nov
(305) |
Dec
(382) |
2005 |
Jan
(267) |
Feb
(282) |
Mar
(327) |
Apr
(338) |
May
(189) |
Jun
(400) |
Jul
(462) |
Aug
(530) |
Sep
(316) |
Oct
(523) |
Nov
(481) |
Dec
(650) |
2006 |
Jan
(536) |
Feb
(361) |
Mar
(287) |
Apr
(146) |
May
(101) |
Jun
(169) |
Jul
(221) |
Aug
(498) |
Sep
(300) |
Oct
(236) |
Nov
(209) |
Dec
(205) |
2007 |
Jan
(30) |
Feb
(23) |
Mar
(26) |
Apr
(15) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rob F. <rob...@us...> - 2001-09-22 07:02:33
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv16200 Modified Files: dialogs.c Log Message: well, it still needs some work, but I did promise that I'd commit it tonight. I need to make it check to make sure the file exists, and need to make it display the current buddy icon. I'll do this tomorrow and will commit it. If there's any errors, I'll grab them then. I've had a couple drinks tonight, so it's very possible that I did something dumb or extremely brilliant. ;-) Index: dialogs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/dialogs.c,v retrieving revision 1.247 retrieving revision 1.248 diff -u -d -r1.247 -r1.248 --- dialogs.c 2001/09/21 00:14:11 1.247 +++ dialogs.c 2001/09/22 07:02:30 1.248 @@ -85,6 +85,7 @@ static GtkWidget *infodialog = NULL; static GList *dialogwindows = NULL; static GtkWidget *exportdialog, *importdialog; +static GtkWidget *icondlg; static GtkWidget *aliasdlg = NULL; static GtkWidget *aliasentry = NULL; static GtkWidget *aliasname = NULL; @@ -173,6 +174,14 @@ GtkWidget *cancel; }; +struct set_icon_dlg { + GtkWidget *window; + struct aim_user *user; + GtkWidget *ok; + GtkWidget *cancel; + GtkWidget *entry; +}; + struct set_dir_dlg { struct gaim_connection *gc; GtkWidget *window; @@ -278,6 +287,9 @@ if (dest == importdialog) importdialog = NULL; + if (dest == icondlg) + icondlg = NULL; + if (dest == aliasdlg) { aliasdlg = NULL; aliasentry = NULL; @@ -330,6 +342,11 @@ destroy_dialog(NULL, importdialog); importdialog = NULL; } + + if (icondlg) { + destroy_dialog(NULL, icondlg); + icondlg = NULL; + } } static void do_warn(GtkWidget *widget, struct warning *w) @@ -1516,6 +1533,183 @@ gtk_widget_show(b->window); +} + +void do_user_icon(GtkWidget *w, gpointer data) +{ + struct set_icon_dlg *b = (struct set_icon_dlg *)data; + char *file; + + file = gtk_file_selection_get_filename(GTK_FILE_SELECTION(icondlg)); + + if (file_is_dir(file, icondlg)) + return; + + if (b && b->entry) { + gtk_entry_set_text(GTK_ENTRY(b->entry), file); + } + + destroy_dialog(NULL, icondlg); + icondlg = NULL; + +} + +void show_icon_dialog(GtkWidget *w, gpointer data) +{ + struct set_icon_dlg *b = (struct set_icon_dlg *)data; + char *buf = g_malloc(BUF_LEN); + + if (!icondlg) { + icondlg = gtk_file_selection_new(_("Gaim - Load User Icon")); + + gtk_file_selection_hide_fileop_buttons(GTK_FILE_SELECTION(icondlg)); + + g_snprintf(buf, BUF_LEN - 1, "%s/", getenv("HOME")); + + gtk_file_selection_set_filename(GTK_FILE_SELECTION(icondlg), buf); + gtk_signal_connect(GTK_OBJECT(icondlg), "destroy", + GTK_SIGNAL_FUNC(destroy_dialog), icondlg); + + gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(icondlg)->ok_button), + "clicked", GTK_SIGNAL_FUNC(do_user_icon), b); + gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(icondlg)->cancel_button), + "clicked", GTK_SIGNAL_FUNC(destroy_dialog), icondlg); + + + } + + g_free(buf); + gtk_widget_show(icondlg); + gdk_window_raise(icondlg->window); +} + +void do_save_icon(GtkWidget *w, struct set_icon_dlg *b) +{ + char *file = gtk_entry_get_text(GTK_ENTRY(b->entry)); + + if (file) + g_snprintf(b->user->iconfile, sizeof(b->user->iconfile), "%s", file); + else + b->user->iconfile[0] = 0; + + save_prefs(); + + destroy_dialog(NULL, b->window); +} + +void do_clear_icon(GtkWidget *w, struct set_icon_dlg *b) +{ + gtk_entry_set_text(GTK_ENTRY(b->entry), ""); +} + +void show_set_icon(struct gaim_connection *gc) +{ + GtkWidget *label; + GtkWidget *frame; + GtkWidget *buttons; + GtkWidget *button; + GtkWidget *vbox; + GtkWidget *hbox; + GtkWidget *hbox2; + GtkWidget *rbox; +/* GtkWidget *sep; */ + + struct aim_user *tmp; + struct set_icon_dlg *b = g_new0(struct set_icon_dlg, 1); + + if (!g_slist_find(connections, gc)) + gc = connections->data; + + tmp = gc->user; + b->user = tmp; + + b->window = gtk_window_new(GTK_WINDOW_DIALOG); + gtk_container_set_border_width(GTK_CONTAINER(b->window), 5); + gtk_window_set_wmclass(GTK_WINDOW(b->window), "set_icon", "Gaim"); + gtk_window_set_title(GTK_WINDOW(b->window), _("Gaim - Set User Icon")); + gtk_signal_connect(GTK_OBJECT(b->window), "destroy", + GTK_SIGNAL_FUNC(destroy_dialog), b->window); + gtk_widget_realize(b->window); + aol_icon(b->window->window); + dialogwindows = g_list_prepend(dialogwindows, b->window); + + /* the box that holds everything */ + vbox = gtk_vbox_new(FALSE, 5); + gtk_widget_show(vbox); + gtk_container_add(GTK_CONTAINER(b->window), vbox); + + /* and the frame that umm frames shit */ + frame = gtk_frame_new(_("User Icon")); + gtk_container_set_border_width(GTK_CONTAINER(frame), 5); + gtk_widget_show(frame); + gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 5); + + /* the inner boxie */ + hbox = gtk_hbox_new(FALSE, 0); + gtk_widget_show(hbox); + gtk_container_add(GTK_CONTAINER(frame), hbox); + + /* + sep = gtk_vseparator_new(); + gtk_widget_show(sep); + gtk_box_pack_start(GTK_BOX(hbox), sep, FALSE, FALSE, 5); + */ + + /* A boxy */ + rbox = gtk_vbox_new(FALSE, 5); + gtk_widget_show(rbox); + gtk_box_pack_start(GTK_BOX(hbox), rbox, FALSE, FALSE, 5); + + label = gtk_label_new(_("Please select an icon to be viewed when you chat with\nother users.")); + gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); + gtk_widget_show(label); + gtk_box_pack_start(GTK_BOX(rbox), label, FALSE, FALSE, 5); + + hbox2 = gtk_hbox_new(FALSE, 5); + gtk_widget_show(hbox2); + gtk_box_pack_start(GTK_BOX(rbox), hbox2, FALSE, FALSE, 5); + + b->entry = gtk_entry_new(); + + if (strlen(gc->user->iconfile)) { + gtk_entry_set_text(GTK_ENTRY(b->entry), gc->user->iconfile); + } + + gtk_widget_show(b->entry); + gtk_box_pack_start(GTK_BOX(hbox2), b->entry, TRUE, TRUE, 5); + + button = gtk_button_new_with_label(_("Browse")); + gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 5); + gtk_signal_connect(GTK_OBJECT(button), "clicked", + GTK_SIGNAL_FUNC(show_icon_dialog), b); + gtk_widget_show(button); + + button = gtk_button_new_with_label(_("Clear")); + gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, FALSE, 5); + gtk_signal_connect(GTK_OBJECT(button), "clicked", + GTK_SIGNAL_FUNC(do_clear_icon), b); + + gtk_widget_show(button); + + /* button buttons */ + buttons = gtk_hbox_new(FALSE, 5); + gtk_box_pack_start(GTK_BOX(vbox), buttons, FALSE, FALSE, 0); + gtk_widget_show(buttons); + + b->cancel = picture_button(b->window, _("Cancel"), cancel_xpm); + gtk_box_pack_end(GTK_BOX(buttons), b->cancel, FALSE, FALSE, 0); + gtk_signal_connect(GTK_OBJECT(b->cancel), "clicked", + GTK_SIGNAL_FUNC(destroy_dialog), b->window); + + b->ok = picture_button(b->window, _("Ok"), ok_xpm); + gtk_box_pack_end(GTK_BOX(buttons), b->ok, FALSE, FALSE, 0); + + gtk_signal_connect(GTK_OBJECT(b->ok), "clicked", + GTK_SIGNAL_FUNC(do_save_icon), b); + + /* Show it */ + gtk_widget_show(b->window); + } void show_set_info(struct gaim_connection *gc) |
From: Rob F. <rob...@us...> - 2001-09-22 07:02:33
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory usw-pr-cvs1:/tmp/cvs-serv16200/protocols/oscar Modified Files: oscar.c Log Message: well, it still needs some work, but I did promise that I'd commit it tonight. I need to make it check to make sure the file exists, and need to make it display the current buddy icon. I'll do this tomorrow and will commit it. If there's any errors, I'll grab them then. I've had a couple drinks tonight, so it's very possible that I did something dumb or extremely brilliant. ;-) Index: oscar.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- oscar.c 2001/09/21 00:57:13 1.36 +++ oscar.c 2001/09/22 07:02:30 1.37 @@ -2634,6 +2634,8 @@ if (!strcmp(act, "Set User Info")) { show_set_info(gc); + } else if (!strcmp(act, "Set Buddy Icon")) { + show_set_icon(gc); } else if (!strcmp(act, "Change Password")) { show_change_passwd(gc); } else if (!strcmp(act, "Confirm Account")) { @@ -2659,6 +2661,7 @@ GList *m = NULL; m = g_list_append(m, "Set User Info"); + m = g_list_append(m, "Set Buddy Icon"); m = g_list_append(m, NULL); m = g_list_append(m, "Change Password"); m = g_list_append(m, "Confirm Account"); |
From: Eric W. <war...@us...> - 2001-09-22 02:19:52
|
Update of /cvsroot/gaim/gaim/src/protocols/toc In directory usw-pr-cvs1:/tmp/cvs-serv10890/protocols/toc Modified Files: toc.c Log Message: fix Index: toc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/toc/toc.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- toc.c 2001/09/21 00:14:12 1.21 +++ toc.c 2001/09/22 02:19:48 1.22 @@ -847,7 +847,7 @@ static int toc_send_im(struct gaim_connection *gc, char *name, char *message, int flags) { char buf[BUF_LEN * 2]; - char *tmp = g_malloc(strlen(message) * 2); + char *tmp = g_malloc(strlen(message) * 4 + 1); /* 4 because \n gets replaced with <BR> */ strcpy(tmp, message); escape_text(tmp); |
From: Eric W. <war...@us...> - 2001-09-21 20:57:24
|
Update of /cvsroot/gaim/gaim/plugins In directory usw-pr-cvs1:/tmp/cvs-serv15435 Modified Files: Makefile.am Log Message: no more version Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/Makefile.am,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- Makefile.am 2001/09/20 18:36:15 1.53 +++ Makefile.am 2001/09/21 20:57:20 1.54 @@ -3,13 +3,9 @@ .c.so: $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) $(PLUGIN_LIBS) - rm -f tmp$@.lo tmp$@.o libtmp$@.la - if test -f .libs/libtmp$@.so ; then \ - cp .libs/libtmp$@.so $@ ; \ - elif test -f .libs/libtmp$@.so.0.0 ; then \ - cp .libs/libtmp$@.so.0.0 $@ ; \ - fi - rm -f .libs/libtmp$@.* + @rm -f tmp$@.lo tmp$@.o libtmp$@.la + @cp .libs/libtmp$@.so $@ + @rm -f .libs/libtmp$@.* if PLUGINS @@ -20,7 +16,7 @@ $(plugin_DATA): $(top_srcdir)/src/gaim.h clean distclean: - $(RM) $(plugin_DATA) + rm -rf $(plugin_DATA) .libs else |
From: Eric W. <war...@us...> - 2001-09-21 20:47:43
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv12274 Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/Makefile.am,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- Makefile.am 2001/08/27 21:56:29 1.35 +++ Makefile.am 2001/09/21 20:47:36 1.36 @@ -62,28 +62,10 @@ gaim_LDADD = @LDADD@ @LIBOBJS@ endif -# UI stuff. We do this here so the PRPLs aren't forced to link with it -LIBS += $(UI_LIBS) - -# Sound libs. Just for fun -LIBS += $(SOUND_LIBS) - -# Static protocols -LIBS += $(STATIC_LINK_LIBS) - -# Perl stuff. plugins shouldn't need this either (right?) CFLAGS += $(PERL_CFLAGS) -LIBS += $(PERL_LIBS) - -# X screensaver extension -LIBS += $(XSS_LIBS) - -# gettext stuff -LIBS += $(INTLLIBS) - -# any other stuff CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\" -DLIBDIR=\"$(libdir)/gaim/\" $(DEBUG_CFLAGS) -LIBS += $(DEBUG_LIBS) + +LIBS = @LIBS@ $(UI_LIBS) $(SOUND_LIBS) $(STATIC_LINK_LIBS) $(PERL_LIBS) $(XSS_LIBS) $(INTLLIBS) $(DEBUG_LIBS) EXTRA_DIST = applet.h \ convo.h \ |
From: Eric W. <war...@us...> - 2001-09-21 20:47:43
|
Update of /cvsroot/gaim/gaim/src/protocols/zephyr In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/zephyr Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/zephyr/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/07/31 01:00:38 1.1 +++ Makefile.am 2001/09/21 20:47:37 1.2 @@ -2,7 +2,8 @@ CFLAGS += -I\$(top_srcdir)/src -I\$(top_srcdir)/src/protocols -DCONFDIR=\"$(confdir)\" $(KRB4_CFLAGS) $(st) $(DEBUG_CFLAGS) -LIBS += $(KRB4_LDFLAGS) $(KRB4_LIBS) +LIBS = @LIBS@ $(KRB4_LDFLAGS) $(KRB4_LIBS) +libzephyr_la_LDFLAGS = -avoid-version if STATIC_ZEPHYR |
From: Eric W. <war...@us...> - 2001-09-21 20:47:43
|
Update of /cvsroot/gaim/gaim/src/protocols/napster In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/napster Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/napster/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/07/31 01:00:38 1.1 +++ Makefile.am 2001/09/21 20:47:36 1.2 @@ -1,6 +1,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libnapster_la_LDFLAGS = -avoid-version if STATIC_NAPSTER |
From: Eric W. <war...@us...> - 2001-09-21 20:47:42
|
Update of /cvsroot/gaim/gaim/src/protocols/toc In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/toc Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/toc/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 2001/09/16 07:05:14 1.2 +++ Makefile.am 2001/09/21 20:47:37 1.3 @@ -3,6 +3,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libtoc_la_LDFLAGS = -avoid-version if STATIC_TOC |
From: Eric W. <war...@us...> - 2001-09-21 20:47:42
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/yahoo Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/07/31 01:00:38 1.1 +++ Makefile.am 2001/09/21 20:47:37 1.2 @@ -3,6 +3,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libyahoo_la_LDFLAGS = -avoid-version if STATIC_YAHOO |
From: Eric W. <war...@us...> - 2001-09-21 20:47:42
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/oscar Modified Files: Makefile.am im.c login.c Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/07/31 01:00:38 1.1 +++ Makefile.am 2001/09/21 20:47:37 1.2 @@ -4,6 +4,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -DAIM_BUILDDATE=\"`date +%Y%m%d`\" -DAIM_BUILDTIME=\"`date +%H%M%S`\" -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +liboscar_la_LDFLAGS = -avoid-version if STATIC_OSCAR Index: im.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/im.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- im.c 2001/09/20 03:16:43 1.7 +++ im.c 2001/09/21 20:47:37 1.8 @@ -1575,6 +1575,9 @@ if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) ret = userfunc(sess, rx, channel, sn, reason); + free(ck); + free(sn); + return ret; } @@ -1584,6 +1587,7 @@ fu16_t type; fu8_t snlen, *ck; char *sn; + int ret = 0; ck = aimbs_getraw(bs, 8); type = aimbs_get16(bs); @@ -1591,12 +1595,12 @@ sn = aimbs_getstr(bs, snlen); if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) - return userfunc(sess, rx, type, sn); + ret = userfunc(sess, rx, type, sn); free(sn); free(ck); - return 0; + return ret; } static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) Index: login.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/login.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- login.c 2001/09/20 03:16:43 1.5 +++ login.c 2001/09/21 20:47:37 1.6 @@ -783,16 +783,17 @@ aim_rxcallback_t userfunc; int vercount; fu8_t *versions; + int ret = 0; vercount = aim_bstream_empty(bs)/4; versions = aimbs_getraw(bs, aim_bstream_empty(bs)); if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) - return userfunc(sess, rx, vercount, versions); + ret = userfunc(sess, rx, vercount, versions); free(versions); - return 0; + return ret; } /* |
From: Eric W. <war...@us...> - 2001-09-21 20:47:42
|
Update of /cvsroot/gaim/gaim/src/protocols/jabber In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/jabber Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/07/31 01:00:38 1.1 +++ Makefile.am 2001/09/21 20:47:36 1.2 @@ -3,6 +3,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libjabber_la_LDFLAGS = -avoid-version if STATIC_JABBER |
From: Eric W. <war...@us...> - 2001-09-21 20:47:42
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/irc Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 2001/09/16 07:05:14 1.2 +++ Makefile.am 2001/09/21 20:47:36 1.3 @@ -3,6 +3,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libirc_la_LDFLAGS = -avoid-version if STATIC_IRC |
From: Eric W. <war...@us...> - 2001-09-21 20:47:40
|
Update of /cvsroot/gaim/gaim/src/protocols/icq In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/icq Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/icq/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 2001/07/31 01:58:50 1.2 +++ Makefile.am 2001/09/21 20:47:36 1.3 @@ -8,6 +8,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libicq_la_LDFLAGS = -avoid-version if STATIC_ICQ |
From: Eric W. <war...@us...> - 2001-09-21 20:47:40
|
Update of /cvsroot/gaim/gaim/src/protocols/msn In directory usw-pr-cvs1:/tmp/cvs-serv12274/protocols/msn Modified Files: Makefile.am Log Message: Arkadiusz Miskiewicz's patches to get automake 1.5 working, and so that it doesn't build .so.0 and .so.0.0.0. i need to do this for plugins/. Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 2001/09/16 07:05:14 1.2 +++ Makefile.am 2001/09/21 20:47:36 1.3 @@ -3,6 +3,7 @@ pkgdir = $(libdir)/gaim CFLAGS += -I\$(top_srcdir)/src $(st) $(DEBUG_CFLAGS) +libmsn_la_LDFLAGS = -avoid-version if STATIC_MSN |
From: Eric W. <war...@us...> - 2001-09-21 17:51:16
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv17997 Modified Files: conversation.c Log Message: ctl-l Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.261 retrieving revision 1.262 diff -u -d -r1.261 -r1.262 --- conversation.c 2001/09/21 00:52:54 1.261 +++ conversation.c 2001/09/21 17:51:13 1.262 @@ -700,6 +700,8 @@ gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); } } + if (event->keyval == 'l') + gtk_imhtml_clear(GTK_IMHTML(c->text)); if ((!c->is_chat && (im_options & OPT_IM_ONE_WINDOW)) || ( c->is_chat && (chat_options & OPT_CHAT_ONE_WINDOW))) { GtkWidget *notebook = (c->is_chat ? chat_notebook : convo_notebook); |
From: Eric W. <war...@us...> - 2001-09-21 08:59:46
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory usw-pr-cvs1:/tmp/cvs-serv27868/protocols/irc Modified Files: irc.c Log Message: removing some duplicate code and handling CTCP VERSION ;) Index: irc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- irc.c 2001/09/20 21:15:07 1.34 +++ irc.c 2001/09/21 08:59:42 1.35 @@ -647,6 +647,51 @@ } } +static void handle_privmsg(struct gaim_connection *gc, char *to, char *nick, char *msg) +{ + if (is_channel(gc, to)) { + struct conversation *c = irc_find_chat(gc, to); + if (!c) + return; + irc_got_chat_in(gc, c->id, nick, 0, msg, time(NULL)); + } else { + char *tmp = g_malloc(strlen(nick) + 2); + g_snprintf(tmp, strlen(nick) + 2, "@%s", nick); + if (find_conversation(tmp)) + irc_got_im(gc, tmp, msg, 0, time(NULL)); + else { + *tmp = '+'; + if (find_conversation(tmp)) + irc_got_im(gc, tmp, msg, 0, time(NULL)); + else + irc_got_im(gc, nick, msg, 0, time(NULL)); + } + g_free(tmp); + } +} + +static void handle_ctcp(struct gaim_connection *gc, char *to, char *nick, + char *msg, char *word[], char *word_eol[]) +{ + struct irc_data *id = gc->proto_data; + char buf[IRC_BUF_LEN]; + + if (!g_strncasecmp(msg, "VERSION", 7)) { + g_snprintf(buf, sizeof(buf), "NOTICE %s :\001VERSION GAIM " VERSION ": The Pimpin " + "Penguin AIM Clone: " WEBSITE "\001\r\n", nick); + irc_write(id->fd, buf, strlen(buf)); + } + if (!g_strncasecmp(msg, "ACTION", 6)) { + char *po = strchr(msg + 6, 1); + char *tmp; + if (po) *po = 0; + tmp = g_strconcat("/me", msg + 6, NULL); + handle_privmsg(gc, to, nick, tmp); + g_free(tmp); + } + /* XXX should probably write_to_conv or something here */ +} + static void irc_callback(gpointer data, gint source, GaimInputCondition condition) { struct gaim_connection *gc = data; @@ -797,54 +842,11 @@ to = word[3]; msg = *word_eol[4] == ':' ? word_eol[4] + 1 : word_eol[4]; if (msg[0] == 1 && msg[strlen (msg) - 1] == 1) { /* ctcp */ - if (!g_strncasecmp(msg + 1, "ACTION", 6)) { - char *po = strchr(msg + 7, 1); - char *tmp; - if (po) *po = 0; - if (is_channel(gc, to)) { - struct conversation *c = irc_find_chat(gc, to); - if (!c) - return; - tmp = g_strconcat("/me", msg + 7, NULL); - irc_got_chat_in(gc, c->id, nick, 0, tmp, time(NULL)); - g_free(tmp); - } else { - tmp = g_strconcat("/me", msg + 7, NULL); - to = g_malloc(strlen(nick) + 2); - g_snprintf(to, strlen(nick) + 2, "@%s", nick); - if (find_conversation(to)) - irc_got_im(gc, to, tmp, 0, time(NULL)); - else { - *to = '+'; - if (find_conversation(to)) - irc_got_im(gc, to, tmp, 0, time(NULL)); - else - irc_got_im(gc, nick, tmp, 0, time(NULL)); - } - g_free(to); - g_free(tmp); - } - } + if (!g_strncasecmp(msg + 1, "DCC ", 4)) + process_data_init(pdibuf, buf, word, word_eol, TRUE); + handle_ctcp(gc, to, nick, msg + 1, word, word_eol); } else { - if (is_channel(gc, to)) { - struct conversation *c = irc_find_chat(gc, to); - if (!c) - return; - irc_got_chat_in(gc, c->id, nick, 0, msg, time(NULL)); - } else { - to = g_malloc(strlen(nick) + 2); - g_snprintf(to, strlen(nick) + 2, "@%s", nick); - if (find_conversation(to)) - irc_got_im(gc, to, msg, 0, time(NULL)); - else { - *to = '+'; - if (find_conversation(to)) - irc_got_im(gc, to, msg, 0, time(NULL)); - else - irc_got_im(gc, nick, msg, 0, time(NULL)); - } - g_free(to); - } + handle_privmsg(gc, to, nick, msg); } } else if (!strcmp(cmd, "PONG")) { /* */ } else if (!strcmp(cmd, "QUIT")) { |
From: Eric W. <war...@us...> - 2001-09-21 01:58:48
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv18251 Modified Files: gtkimhtml.c Log Message: i think that the <BR>'s were getting improperly drawn at times, so it should be fixed now. Index: gtkimhtml.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- gtkimhtml.c 2001/09/21 01:47:39 1.49 +++ gtkimhtml.c 2001/09/21 01:58:44 1.50 @@ -308,7 +308,8 @@ bg = imhtml->default_bg_color; } - gdk_draw_rectangle (window, gc, TRUE, line->x - xoff, line->y - yoff, line->width, line->height); + gdk_draw_rectangle (window, gc, TRUE, line->x - xoff, line->y - yoff, + line->width ? line->width : imhtml->xsize, line->height); if (!line->text) { gdk_gc_unref (gc); |
From: Eric W. <war...@us...> - 2001-09-21 01:47:42
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv16775 Modified Files: gtkimhtml.c Log Message: fix the selection thing where if you drag it past where the text is it keeps going and it causes weird things to happen. this feels much more solid. Index: gtkimhtml.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- gtkimhtml.c 2001/08/29 00:04:59 1.48 +++ gtkimhtml.c 2001/09/21 01:47:39 1.49 @@ -1209,7 +1209,7 @@ imhtml); diff = (yy < 0) ? (yy / 2) : ((yy - height) / 2); gtk_adjustment_set_value (vadj, - MIN (vadj->value + diff, vadj->upper - height + 20)); + MIN (vadj->value + diff, vadj->upper - height)); } if (imhtml->selection) { |
From: Eric W. <war...@us...> - 2001-09-21 00:57:17
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory usw-pr-cvs1:/tmp/cvs-serv10309/protocols/oscar Modified Files: oscar.c Log Message: hi van Index: oscar.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- oscar.c 2001/09/20 03:16:43 1.35 +++ oscar.c 2001/09/21 00:57:13 1.36 @@ -1302,7 +1302,7 @@ ir->timestamp = args->iconstamp; } - if (gc->user->iconfile && (args->icbmflags & AIM_IMFLAGS_BUDDYREQ)) { + if (gc->user->iconfile[0] && (args->icbmflags & AIM_IMFLAGS_BUDDYREQ)) { FILE *file; struct stat st; @@ -1311,12 +1311,15 @@ file = fopen(gc->user->iconfile, "r"); if (file) { fread(buf, 1, st.st_size, file); + debug_printf("Sending buddy icon to %d\n", userinfo->sn); aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, st.st_mtime, aim_iconsum(buf, st.st_size)); fclose(file); - } + } else + debug_printf("Can't open buddy icon file!\n"); g_free(buf); - } + } else + debug_printf("Can't stat buddy icon file!\n"); } /* @@ -2111,7 +2114,7 @@ debug_printf("sending buddy icon request with message\n"); } - if (gc->user->iconfile && !stat(gc->user->iconfile, &st)) { + if (gc->user->iconfile[0] && !stat(gc->user->iconfile, &st)) { FILE *file = fopen(gc->user->iconfile, "r"); if (file) { char *buf = g_malloc(st.st_size); @@ -2122,6 +2125,7 @@ args.iconstamp = st.st_mtime; args.flags |= AIM_IMFLAGS_HASICON; + debug_printf("Claiming to have an icon.\n"); fclose(file); g_free(buf); |
From: Eric W. <war...@us...> - 2001-09-21 00:52:58
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv9481 Modified Files: conversation.c Log Message: what a stupid fix Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.260 retrieving revision 1.261 diff -u -d -r1.260 -r1.261 --- conversation.c 2001/09/21 00:14:11 1.260 +++ conversation.c 2001/09/21 00:52:54 1.261 @@ -2056,7 +2056,7 @@ if (!all_convos) { win = all_convos = c->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_wmclass(GTK_WINDOW(win), "conversation", "Gaim"); - gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, TRUE); + gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, FALSE); gtk_container_border_width(GTK_CONTAINER(win), 0); gtk_widget_realize(win); aol_icon(win->window); |
From: Eric W. <war...@us...> - 2001-09-21 00:14:15
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv4284/src Modified Files: buddy.c conversation.c dialogs.c gaim.h prpl.h server.c Log Message: i feel like everyone's watching me Index: buddy.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/buddy.c,v retrieving revision 1.243 retrieving revision 1.244 diff -u -d -r1.243 -r1.244 --- buddy.c 2001/09/20 01:20:29 1.243 +++ buddy.c 2001/09/21 00:14:11 1.244 @@ -869,7 +869,6 @@ delb = (struct buddy *)mem->data; delg->members = g_slist_remove(delg->members, delb); - serv_remove_buddy(gc, delb->name); gs = find_group_show(rem_g->name); if (gs) { @@ -906,10 +905,9 @@ if (c) update_buttons_by_protocol(c); g_free(delb); - - /* flush buddy list to cache */ - do_export(gc); + /* we don't flush buddy list to cache because in the case of remove_group that would + * mean writing to the buddy list file once for each buddy, plus one more time */ } void remove_group(struct gaim_connection *gc, struct group *rem_g) @@ -917,6 +915,7 @@ GSList *grp; GSList *mem; struct group_show *gs; + GList *tmp = NULL; struct group *delg; struct buddy *delb; @@ -930,6 +929,7 @@ while(delg->members) { delb = (struct buddy *)delg->members->data; + tmp = g_list_append(tmp, g_strdup(delb->name)); remove_buddy(gc, delg, delb); /* this should take care of removing the group_show if necessary */ } @@ -944,9 +944,14 @@ } g_free(delg); - /* flush buddy list to cache */ + serv_remove_buddies(gc, tmp); + while (tmp) { + g_free(tmp->data); + tmp = g_list_remove(tmp, tmp->data); + } - do_export(gc); + /* don't flush buddy list to cache in order to be consistent with remove_buddy, + * mostly. remove_group is only called from one place, so we'll let it handle it. */ } @@ -1386,6 +1391,7 @@ b = (struct buddy *)type; g = find_group_by_buddy(b->gc, b->name); gct = b->gc; + serv_remove_buddy(b->gc, b->name); remove_buddy(b->gc, g, b); gtk_ctree_remove_node(GTK_CTREE(edittree), node); do_export(gct); Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.259 retrieving revision 1.260 diff -u -d -r1.259 -r1.260 --- conversation.c 2001/09/20 09:12:29 1.259 +++ conversation.c 2001/09/21 00:14:11 1.260 @@ -532,7 +532,9 @@ { if (c->gc && find_buddy(c->gc, c->name) != NULL) { debug_printf(_("Removing '%s' from buddylist.\n"), c->name); + serv_remove_buddy(c->gc, c->name); remove_buddy(c->gc, find_group_by_buddy(c->gc, c->name), find_buddy(c->gc, c->name)); + do_export(c->gc); build_edit_tree(); update_convo_add_button(c); } else { Index: dialogs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/dialogs.c,v retrieving revision 1.246 retrieving revision 1.247 diff -u -d -r1.246 -r1.247 --- dialogs.c 2001/09/20 08:33:42 1.246 +++ dialogs.c 2001/09/21 00:14:11 1.247 @@ -454,107 +454,6 @@ -void show_error_dialog(char *d) -{ - - int no = atoi(d); - char *w; - char buf[256]; - char buf2[32]; - - plugin_event(event_error, (void *)no, 0, 0, 0); - - w = strtok(NULL, ":"); - - - switch(no) { - case 69: - g_snprintf(buf, sizeof(buf), _("Unable to write file %s."), w); - break; - case 169: - g_snprintf(buf, sizeof(buf), _("Unable to read file %s."), w); - break; - case 269: - g_snprintf(buf, sizeof(buf), _("Message too long, last %s bytes truncated."), w); - break; - case 901: - g_snprintf(buf, sizeof(buf), _("%s not currently logged in."), w); - break; - case 902: - g_snprintf(buf, sizeof(buf), _("Warning of %s not allowed."), w); - break; - case 903: - g_snprintf(buf, sizeof(buf), _("A message has been dropped, you are exceeding the server speed limit.")); - break; - case 950: - g_snprintf(buf, sizeof(buf), _("Chat in %s is not available."), w); - break; - case 960: - g_snprintf(buf, sizeof(buf), _("You are sending messages too fast to %s."), w); - break; - case 961: - g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was too big."), w); - break; - case 962: - g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was sent too fast."), w); - break; - case 970: - g_snprintf(buf, sizeof(buf), _("Failure.")); - break; - case 971: - g_snprintf(buf, sizeof(buf), _("Too many matches.")); - break; - case 972: - g_snprintf(buf, sizeof(buf), _("Need more qualifiers.")); - break; - case 973: - g_snprintf(buf, sizeof(buf), _("Dir service temporarily unavailable.")); - break; - case 974: - g_snprintf(buf, sizeof(buf), _("Email lookup restricted.")); - break; - case 975: - g_snprintf(buf, sizeof(buf), _("Keyword ignored.")); - break; - case 976: - g_snprintf(buf, sizeof(buf), _("No keywords.")); - break; - case 977: - g_snprintf(buf, sizeof(buf), _("User has no directory information.")); - /* g_snprintf(buf, sizeof(buf), "Language not supported."); */ - break; - case 978: - g_snprintf(buf, sizeof(buf), _("Country not supported.")); - break; - case 979: - g_snprintf(buf, sizeof(buf), _("Failure unknown: %s."), w); - break; - case 980: - g_snprintf(buf, sizeof(buf), _("Incorrect nickname or password.")); - break; - case 981: - g_snprintf(buf, sizeof(buf), _("The service is temporarily unavailable.")); - break; - case 982: - g_snprintf(buf, sizeof(buf), _("Your warning level is currently too high to log in.")); - break; - case 983: - g_snprintf(buf, sizeof(buf), _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); - break; - case 989: - g_snprintf(buf, sizeof(buf), _("An unknown signon error has occurred: %s."), w); - break; - default: - g_snprintf(buf, sizeof(buf), _("An unknown error, %d, has occured. Info: %s"), no, w); - } - - g_snprintf(buf2, sizeof(buf2), _("Gaim - Error %d"), no); - - - do_error_dialog(buf, buf2); - return; -} - static void do_im(GtkWidget *widget, GtkWidget *imentry) { char *who; Index: gaim.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/gaim.h,v retrieving revision 1.259 retrieving revision 1.260 diff -u -d -r1.259 -r1.260 --- gaim.h 2001/09/20 19:09:42 1.259 +++ gaim.h 2001/09/21 00:14:12 1.260 @@ -664,6 +664,7 @@ extern void serv_add_buddy(struct gaim_connection *, char *); extern void serv_add_buddies(struct gaim_connection *, GList *); extern void serv_remove_buddy(struct gaim_connection *, char *); +extern void serv_remove_buddies(struct gaim_connection *, GList *); extern void serv_add_permit(struct gaim_connection *, char *); extern void serv_add_deny(struct gaim_connection *, char *); extern void serv_rem_permit(struct gaim_connection *, char *); @@ -843,7 +844,6 @@ extern void do_export(struct gaim_connection *); extern void show_warn_dialog(struct gaim_connection *, char *); extern GtkWidget *do_error_dialog(char *, char *); -extern void show_error_dialog(char *); extern void show_im_dialog(); extern void some_name(char *); extern void show_info_dialog(); Index: prpl.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/prpl.h,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- prpl.h 2001/09/19 06:09:15 1.47 +++ prpl.h 2001/09/21 00:14:12 1.48 @@ -116,6 +116,7 @@ void (* add_buddy) (struct gaim_connection *, char *name); void (* add_buddies) (struct gaim_connection *, GList *buddies); void (* remove_buddy) (struct gaim_connection *, char *name); + void (* remove_buddies) (struct gaim_connection *, GList *buddies); void (* add_permit) (struct gaim_connection *, char *name); void (* add_deny) (struct gaim_connection *, char *name); void (* rem_permit) (struct gaim_connection *, char *name); Index: server.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/server.c,v retrieving revision 1.189 retrieving revision 1.190 diff -u -d -r1.189 -r1.190 --- server.c 2001/09/20 01:20:29 1.189 +++ server.c 2001/09/21 00:14:12 1.190 @@ -234,6 +234,20 @@ (*g->prpl->remove_buddy)(g, name); } +void serv_remove_buddies(struct gaim_connection *gc, GList *g) +{ + if (!gc->prpl) + return; /* how the hell did that happen? */ + if (gc->prpl->remove_buddies) + (*gc->prpl->remove_buddies)(gc, g); + else { + while (g) { + serv_remove_buddy(gc, g->data); + g = g->next; + } + } +} + void serv_add_permit(struct gaim_connection *g, char *name) { if (g->prpl && g->prpl->add_permit) |
From: Eric W. <war...@us...> - 2001-09-21 00:14:14
|
Update of /cvsroot/gaim/gaim/src/protocols/toc In directory usw-pr-cvs1:/tmp/cvs-serv4284/src/protocols/toc Modified Files: toc.c Log Message: i feel like everyone's watching me Index: toc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/toc/toc.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- toc.c 2001/09/19 06:09:15 1.20 +++ toc.c 2001/09/21 00:14:12 1.21 @@ -236,6 +236,9 @@ len = MSG_LEN; } + if (olen < 0) + debug_printf("TOC C: %s\n", buf); + hdr.ast = '*'; hdr.type = type; hdr.seqno = htons(tdt->seqno++ & 0xffff); @@ -308,6 +311,98 @@ g_show_info_text(url_text, NULL); } +static char *show_error_message(char *d) +{ + int no = atoi(strtok(NULL, ":")); + char *w = strtok(NULL, ":"); + static char buf[256]; + + plugin_event(event_error, (void *)no, 0, 0, 0); + + switch(no) { + case 69: + g_snprintf(buf, sizeof(buf), _("Unable to write file %s."), w); + break; + case 169: + g_snprintf(buf, sizeof(buf), _("Unable to read file %s."), w); + break; + case 269: + g_snprintf(buf, sizeof(buf), _("Message too long, last %s bytes truncated."), w); + break; + case 901: + g_snprintf(buf, sizeof(buf), _("%s not currently logged in."), w); + break; + case 902: + g_snprintf(buf, sizeof(buf), _("Warning of %s not allowed."), w); + break; + case 903: + g_snprintf(buf, sizeof(buf), _("A message has been dropped, you are exceeding the server speed limit.")); + break; + case 950: + g_snprintf(buf, sizeof(buf), _("Chat in %s is not available."), w); + break; + case 960: + g_snprintf(buf, sizeof(buf), _("You are sending messages too fast to %s."), w); + break; + case 961: + g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was too big."), w); + break; + case 962: + g_snprintf(buf, sizeof(buf), _("You missed an IM from %s because it was sent too fast."), w); + break; + case 970: + g_snprintf(buf, sizeof(buf), _("Failure.")); + break; + case 971: + g_snprintf(buf, sizeof(buf), _("Too many matches.")); + break; + case 972: + g_snprintf(buf, sizeof(buf), _("Need more qualifiers.")); + break; + case 973: + g_snprintf(buf, sizeof(buf), _("Dir service temporarily unavailable.")); + break; + case 974: + g_snprintf(buf, sizeof(buf), _("Email lookup restricted.")); + break; + case 975: + g_snprintf(buf, sizeof(buf), _("Keyword ignored.")); + break; + case 976: + g_snprintf(buf, sizeof(buf), _("No keywords.")); + break; + case 977: + g_snprintf(buf, sizeof(buf), _("User has no directory information.")); + /* g_snprintf(buf, sizeof(buf), "Language not supported."); */ + break; + case 978: + g_snprintf(buf, sizeof(buf), _("Country not supported.")); + break; + case 979: + g_snprintf(buf, sizeof(buf), _("Failure unknown: %s."), w); + break; + case 980: + g_snprintf(buf, sizeof(buf), _("Incorrect nickname or password.")); + break; + case 981: + g_snprintf(buf, sizeof(buf), _("The service is temporarily unavailable.")); + break; + case 982: + g_snprintf(buf, sizeof(buf), _("Your warning level is currently too high to log in.")); + break; + case 983: + g_snprintf(buf, sizeof(buf), _("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer.")); + break; + case 989: + g_snprintf(buf, sizeof(buf), _("An unknown signon error has occurred: %s."), w); + break; + default: + g_snprintf(buf, sizeof(buf), _("An unknown error, %d, has occured. Info: %s"), no, w); + } + + return buf; +} + static void toc_callback(gpointer data, gint source, GaimInputCondition condition) { struct gaim_connection *gc = (struct gaim_connection *)data; @@ -363,7 +458,12 @@ if (g_strncasecmp(buf + sizeof(struct sflap_hdr), "SIGN_ON", strlen("SIGN_ON"))) { debug_printf("Didn't get SIGN_ON! buf was: %s\n", buf + sizeof(struct sflap_hdr)); - hide_login_progress(gc, _("Authentication Failed")); + if (!g_strncasecmp(buf + sizeof(struct sflap_hdr), "ERROR", 5)) { + strtok(buf + sizeof(struct sflap_hdr), ":"); + hide_login_progress(gc, show_error_message(buf + + sizeof(struct sflap_hdr))); + } else + hide_login_progress(gc, _("Authentication Failed")); signoff(gc); return; } @@ -396,7 +496,7 @@ return; } - debug_printf("From TOC server: %s\n", buf + sizeof(struct sflap_hdr)); + debug_printf("TOC S: %s\n", buf + sizeof(struct sflap_hdr)); c = strtok(buf + sizeof(struct sflap_hdr), ":"); /* Ditch the first part */ @@ -489,7 +589,7 @@ serv_got_update(gc, c, logged, evil, signon, time_idle, type, 0); } else if (!strcasecmp(c, "ERROR")) { c = strtok(NULL, ":"); - show_error_dialog(c); + show_error_message(c); } else if (!strcasecmp(c, "EVILED")) { int lev; char *name; @@ -847,7 +947,7 @@ toc_set_config(g); } -static void toc_add_buddies(struct gaim_connection *g, GList * buddies) +static void toc_add_buddies(struct gaim_connection *g, GList *buddies) { char buf[BUF_LEN * 2]; int n; @@ -872,6 +972,24 @@ toc_set_config(g); } +static void toc_remove_buddies(struct gaim_connection *g, GList *buddies) +{ + char buf[BUF_LEN * 2]; + int n; + + n = g_snprintf(buf, sizeof(buf), "toc_remove_buddy"); + while (buddies) { + if (strlen(normalize(buddies->data)) + n + 32 > MSG_LEN) { + sflap_send(g, buf, -1, TYPE_DATA); + n = g_snprintf(buf, sizeof(buf), "toc_remove_buddy"); + } + n += g_snprintf(buf + n, sizeof(buf) - n, " %s", normalize(buddies->data)); + buddies = buddies->next; + } + sflap_send(g, buf, -1, TYPE_DATA); + toc_set_config(g); +} + static void toc_set_idle(struct gaim_connection *g, int time) { char buf[BUF_LEN * 2]; @@ -1190,6 +1308,7 @@ ret->add_buddy = toc_add_buddy; ret->add_buddies = toc_add_buddies; ret->remove_buddy = toc_remove_buddy; + ret->remove_buddies = toc_remove_buddies; ret->add_permit = toc_add_permit; ret->add_deny = toc_add_deny; ret->rem_permit = toc_rem_permit; |
From: Manuel L. <ml...@ci...> - 2001-09-20 22:10:32
|
subscribe |
From: Eric W. <war...@us...> - 2001-09-20 21:44:56
|
Update of /cvsroot/gaim/gaim In directory usw-pr-cvs1:/tmp/cvs-serv5522 Modified Files: README Log Message: this is just a test. really. Index: README =================================================================== RCS file: /cvsroot/gaim/gaim/README,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- README 2001/09/20 21:38:10 1.19 +++ README 2001/09/20 21:44:52 1.20 @@ -1,7 +1,7 @@ gaim ======================== Rob Flynn <ro...@ma...> IM: RobFlynn (currnet maintainer) -Eric Warmenhoven <war...@ya...> IM: EWarmenhoven (Gnome Boy :)) +Eric Warmenhoven <war...@ya...> IM: EWarmenhoven (lead devel) Syd Logan - Super Hacker and Resident Designated Driver Jim Duchek <jim...@ou...> IM: Zilding (former maintainer) Mark Spencer <mar...@ma...> |