diff src/connection.c @ 6106:99f4bbeb27bc

[gaim-migrate @ 6567] Fix Cae non-fatal bug 6: "no notification of incorrect password/name." Also removed some unused code from gtkconn.c and multi.c (which was derelict). Make dialog and request windows show the titles that are passed to them. Fixed a compiler warning coughsean'sawaymessagestuffcough I'm looking forward to writting a NEWS entry for 0.65, I hope it will be soon :-) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 13 Jul 2003 09:34:48 +0000
parents 8d6aa792e0f6
children 0922bb7a7bbc
line wrap: on
line diff
--- a/src/connection.c	Sun Jul 13 08:20:42 2003 +0000
+++ b/src/connection.c	Sun Jul 13 09:34:48 2003 +0000
@@ -30,6 +30,7 @@
 #include "request.h"
 #include "server.h"
 #include "sound.h"
+#include "util.h"
 
 static GList *connections = NULL;
 static GList *connections_connecting = NULL;
@@ -364,10 +365,19 @@
 gaim_connection_error(GaimConnection *gc, const char *text)
 {
 	GaimConnectionUiOps *ops;
+	gchar *primary, *secondary;
 
 	g_return_if_fail(gc   != NULL);
 	g_return_if_fail(text != NULL);
 
+	primary = g_strdup_printf(_("%s has been disconnected"),
+				gaim_account_get_username(gaim_connection_get_account(gc)));
+	secondary = g_strdup_printf("%s\n%s", full_date(),
+								text ? text : _("Reason Unknown."));
+	gaim_notify_error(NULL, _("Connection Error"), primary, secondary);
+	g_free(primary);
+	g_free(secondary);
+
 	ops = gaim_get_connection_ui_ops();
 
 	if (ops != NULL && ops->disconnected != NULL)