pidgin: 26a3e3fc: Show the name of the account in the "Set...

qulogic at pidgin.im qulogic at pidgin.im
Wed Dec 23 03:47:01 EST 2009


-----------------------------------------------------------------
Revision: 26a3e3fc9a1d156f17429419824a813196fd6d58
Ancestor: b86e5be240d2c52d0ba3da0a5a555ea2cfdc3f9e
Author: qulogic at pidgin.im
Date: 2009-12-23T07:13:27
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/26a3e3fc9a1d156f17429419824a813196fd6d58

Modified files:
        libpurple/protocols/msn/msn.c

ChangeLog: 

Show the name of the account in the "Set Friendly Name" dialog.

Fixes #3749.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c	b3668411315e4aa60e83e55ef560cc392f789fdc
+++ libpurple/protocols/msn/msn.c	fed3a049ae956ae48a7b37a9a01305e16991db88
@@ -345,17 +345,23 @@ msn_show_set_friendly_name(PurplePluginA
 msn_show_set_friendly_name(PurplePluginAction *action)
 {
 	PurpleConnection *gc;
+	PurpleAccount *account;
+	char *tmp;
 
 	gc = (PurpleConnection *) action->context;
+	account = purple_connection_get_account(gc);
 
-	purple_request_input(gc, NULL, _("Set your friendly name."),
+	tmp = g_strdup_printf(_("Set friendly name for %s."),
+	                      purple_account_get_username(account));
+	purple_request_input(gc, _("Set your friendly name."), tmp,
 					   _("This is the name that other MSN buddies will "
 						 "see you as."),
 					   purple_connection_get_display_name(gc), FALSE, FALSE, NULL,
 					   _("OK"), G_CALLBACK(msn_act_id),
 					   _("Cancel"), NULL,
-					   purple_connection_get_account(gc), NULL, NULL,
+					   account, NULL, NULL,
 					   gc);
+	g_free(tmp);
 }
 
 static void


More information about the Commits mailing list