im.pidgin.cpw.resiak.disconnectreason: f2980da25b620e0a6cafa4407ddc1a139a47381a

resiak at soc.pidgin.im resiak at soc.pidgin.im
Mon Nov 5 04:41:28 EST 2007


-----------------------------------------------------------------
Revision: f2980da25b620e0a6cafa4407ddc1a139a47381a
Ancestor: f478e152d2dbeb8cac5db9f3c68c58acb00c9b54
Author: resiak at soc.pidgin.im
Date: 2007-11-05T01:32:25
Branch: im.pidgin.cpw.resiak.disconnectreason

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Say that an account has been disabled if it has been in the title of a generic
connection error minidialog.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	26dd208b80c567ca2d69d1d8255b2267e9163a8a
+++ pidgin/gtkblist.c	e8e1ce76cb26c4912fac30cd9127c35a4882dc1c
@@ -4419,9 +4419,13 @@ add_generic_error_dialog(PurpleAccount *
 	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,
 		(enabled ? _("Reconnect") : _("Re-enable")),


More information about the Commits mailing list