# HG changeset patch # User Elliott Sales de Andrade # Date 1261552407 0 # Node ID 5259ca10b6414939346e01863d8a68e14f710b04 # Parent 16dfa8df7dd1e43e2663d5c5804358b37dfea0b9 Show the name of the account in the "Set Friendly Name" dialog. Fixes #3749. diff -r 16dfa8df7dd1 -r 5259ca10b641 libpurple/protocols/msn/msn.c --- 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