pidgin: 7bf212f5: Set the display name before marking the ...
markdoliner at pidgin.im
markdoliner at pidgin.im
Mon Dec 15 23:15:28 EST 2008
-----------------------------------------------------------------
Revision: 7bf212f5a45ac6170dbbe6205c562fea7f94b433
Ancestor: 389fc77b5c3ca539802831acadefd13997e9bdbe
Author: markdoliner at pidgin.im
Date: 2008-12-16T04:13:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7bf212f5a45ac6170dbbe6205c562fea7f94b433
Modified files:
libpurple/protocols/myspace/myspace.c
ChangeLog:
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
-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c adef48fcbba75134b17851f982a291f9b42a604e
+++ libpurple/protocols/myspace/myspace.c 92d4dab98c654b50501d0a1279b7835f84822a03
@@ -1157,15 +1157,15 @@ gboolean msim_we_are_logged_on(MsimSessi
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);
More information about the Commits
mailing list