changeset 24734:512c7c31eb21

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
author Mark Doliner <mark@kingant.net>
date Tue, 16 Dec 2008 04:13:14 +0000
parents b0b3952aae27
children 9f6ae339e849 49f0e5dbeeed
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);