Mercurial > pidgin
changeset 28824:5259ca10b641
Show the name of the account in the "Set Friendly Name" dialog.
Fixes #3749.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 23 Dec 2009 07:13:27 +0000 |
parents | 16dfa8df7dd1 |
children | ac6c2dda0eae |
files | libpurple/protocols/msn/msn.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Wed Dec 23 06:23:24 2009 +0000 +++ b/libpurple/protocols/msn/msn.c Wed Dec 23 07:13:27 2009 +0000 @@ -345,17 +345,23 @@ msn_show_set_friendly_name(PurplePluginAction *action) { PurpleConnection *gc; + PurpleAccount *account; + char *tmp; gc = (PurpleConnection *) action->context; - - purple_request_input(gc, NULL, _("Set your friendly name."), + account = purple_connection_get_account(gc); + + 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