Mercurial > pidgin
diff libpurple/protocols/myspace/myspace.c @ 22264:e808d83d797e
In msimprpl, use a PURPLE_STATUS_TUNE presence type to hold the "now playing"
artist and song title, instead of storing it in the MsimUser struct.
So now Pidgin shows music notes by MySpaceIM users that have music playing.
Though you can't yet click the notes to play the music, as in the official
client (that's #4766).
Closes #4140.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Mon, 04 Feb 2008 04:00:12 +0000 |
parents | 9f95357c21b9 |
children | fc31c35d8024 1f3481447197 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Tue Jan 29 01:51:26 2008 +0000 +++ b/libpurple/protocols/myspace/myspace.c Mon Feb 04 04:00:12 2008 +0000 @@ -158,6 +158,19 @@ _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_OFFLINE); _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_INVISIBLE); + /* Except tune status is different... */ + status = purple_status_type_new_with_attrs( + PURPLE_STATUS_TUNE, /* primitive */ + "tune", /* ID */ + NULL, /* name - use default */ + TRUE, /* savable */ + TRUE, /* should be user_settable some day */ + TRUE, /* independent */ + + PURPLE_TUNE_ARTIST, _("Artist"), purple_value_new(PURPLE_TYPE_STRING), + PURPLE_TUNE_TITLE, _("Title"), purple_value_new(PURPLE_TYPE_STRING)); + + types = g_list_append(types, status); return types; } @@ -995,8 +1008,6 @@ g_free(user->headline); g_free(user->display_name); g_free(user->username); - g_free(user->band_name); - g_free(user->song_name); g_free(user->image_url); g_free(user); }