libpurple/account.c

changeset 41500
9a1ad10a0940
parent 41479
3d2e114380f6
child 41514
a96768bacb59
--- a/libpurple/account.c	Mon Aug 15 22:19:19 2022 -0500
+++ b/libpurple/account.c	Mon Aug 15 22:53:44 2022 -0500
@@ -539,11 +539,21 @@
 
 	if(new_err != NULL) {
 		PurpleProtocol *protocol = NULL;
+		gchar *title = NULL;
 
 		priv->error_notification =
 			purple_notification_new(PURPLE_NOTIFICATION_TYPE_CONNECTION_ERROR,
 			                        account, new_err, NULL);
 
+		if(priv->enabled) {
+			title = g_strdup_printf(_("%s disconnected"), priv->username);
+		} else {
+			title = g_strdup_printf(_("%s disabled"), priv->username);
+		}
+
+		purple_notification_set_title(priv->error_notification, title);
+		g_free(title);
+
 		protocol = purple_account_get_protocol(account);
 		if(PURPLE_IS_PROTOCOL(protocol)) {
 			const gchar *icon_name = purple_protocol_get_icon_name(protocol);

mercurial