# HG changeset patch # User Mark Doliner # Date 1229400794 0 # Node ID 512c7c31eb21ba32b15feda9ea661a72d67050b6 # Parent b0b3952aae279134dc55d0e956acc4015ea03ade Set the display name before marking the connection as "connected." This might help some UIs that only look at the display name when the prpl sets itself to online *coughmeebocough* This is a good time to point out that we don't have a signal when the display name is set, so the UI has no way to update itself. Maybe something we can take care of with gobjectification diff -r b0b3952aae27 -r 512c7c31eb21 libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Tue Dec 16 04:08:38 2008 +0000 +++ b/libpurple/protocols/myspace/myspace.c Tue Dec 16 04:13:14 2008 +0000 @@ -1157,15 +1157,15 @@ g_return_val_if_fail(MSIM_SESSION_VALID(session), FALSE); + /* Set display name to username (otherwise will show email address) */ + purple_connection_set_display_name(session->gc, session->username); + /* The session is now set up, ready to be connected. This emits the * signedOn signal, so clients can now do anything with msimprpl, and * we're ready for it (session key, userid, username all setup). */ purple_connection_update_progress(session->gc, _("Connected"), 3, 4); purple_connection_set_state(session->gc, PURPLE_CONNECTED); - /* Set display name to username (otherwise will show email address) */ - purple_connection_set_display_name(session->gc, session->username); - body = msim_msg_new( "UserID", MSIM_TYPE_INTEGER, session->userid, NULL);