changeset 21413:ccceac5e1976

Say that an account has been disabled if it has been in the title of a generic connection error minidialog.
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 05 Nov 2007 01:32:25 +0000
parents 2f818256ae62
children c972c9311221
files pidgin/gtkblist.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Mon Nov 05 01:29:11 2007 +0000
+++ b/pidgin/gtkblist.c	Mon Nov 05 01:32:25 2007 +0000
@@ -4419,8 +4419,12 @@
 	const char *username = purple_account_get_username(account);
 	gboolean enabled =
 		purple_account_get_enabled(account, purple_core_get_ui());
-	char *primary = g_strdup_printf(_("%s disconnected"), username);
-
+	char *primary;
+	
+	if (enabled)
+		primary = g_strdup_printf(_("%s disconnected"), username);
+	else
+		primary = g_strdup_printf(_("%s disabled"), username);
 
 	mini_dialog = pidgin_make_mini_dialog(NULL, PIDGIN_STOCK_DISCONNECT,
 		primary, err->description, account,