Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
6105:786adff640e1 | 6106:99f4bbeb27bc |
---|---|
28 #include "notify.h" | 28 #include "notify.h" |
29 #include "prefs.h" | 29 #include "prefs.h" |
30 #include "request.h" | 30 #include "request.h" |
31 #include "server.h" | 31 #include "server.h" |
32 #include "sound.h" | 32 #include "sound.h" |
33 #include "util.h" | |
33 | 34 |
34 static GList *connections = NULL; | 35 static GList *connections = NULL; |
35 static GList *connections_connecting = NULL; | 36 static GList *connections_connecting = NULL; |
36 static GaimConnectionUiOps *connection_ui_ops = NULL; | 37 static GaimConnectionUiOps *connection_ui_ops = NULL; |
37 | 38 |
362 | 363 |
363 void | 364 void |
364 gaim_connection_error(GaimConnection *gc, const char *text) | 365 gaim_connection_error(GaimConnection *gc, const char *text) |
365 { | 366 { |
366 GaimConnectionUiOps *ops; | 367 GaimConnectionUiOps *ops; |
368 gchar *primary, *secondary; | |
367 | 369 |
368 g_return_if_fail(gc != NULL); | 370 g_return_if_fail(gc != NULL); |
369 g_return_if_fail(text != NULL); | 371 g_return_if_fail(text != NULL); |
370 | 372 |
373 primary = g_strdup_printf(_("%s has been disconnected"), | |
374 gaim_account_get_username(gaim_connection_get_account(gc))); | |
375 secondary = g_strdup_printf("%s\n%s", full_date(), | |
376 text ? text : _("Reason Unknown.")); | |
377 gaim_notify_error(NULL, _("Connection Error"), primary, secondary); | |
378 g_free(primary); | |
379 g_free(secondary); | |
380 | |
371 ops = gaim_get_connection_ui_ops(); | 381 ops = gaim_get_connection_ui_ops(); |
372 | 382 |
373 if (ops != NULL && ops->disconnected != NULL) | 383 if (ops != NULL && ops->disconnected != NULL) |
374 ops->disconnected(gc, text); | 384 ops->disconnected(gc, text); |
375 | 385 |