comparison 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
comparison
equal deleted inserted replaced
22229:ae5917260eac 22264:e808d83d797e
156 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_AVAILABLE); 156 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_AVAILABLE);
157 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_AWAY); 157 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_AWAY);
158 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_OFFLINE); 158 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_OFFLINE);
159 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_INVISIBLE); 159 _MSIM_ADD_NEW_STATUS(PURPLE_STATUS_INVISIBLE);
160 160
161 /* Except tune status is different... */
162 status = purple_status_type_new_with_attrs(
163 PURPLE_STATUS_TUNE, /* primitive */
164 "tune", /* ID */
165 NULL, /* name - use default */
166 TRUE, /* savable */
167 TRUE, /* should be user_settable some day */
168 TRUE, /* independent */
169
170 PURPLE_TUNE_ARTIST, _("Artist"), purple_value_new(PURPLE_TYPE_STRING),
171 PURPLE_TUNE_TITLE, _("Title"), purple_value_new(PURPLE_TYPE_STRING));
172
173 types = g_list_append(types, status);
161 174
162 return types; 175 return types;
163 } 176 }
164 177
165 /** 178 /**
993 g_free(user->gender); 1006 g_free(user->gender);
994 g_free(user->location); 1007 g_free(user->location);
995 g_free(user->headline); 1008 g_free(user->headline);
996 g_free(user->display_name); 1009 g_free(user->display_name);
997 g_free(user->username); 1010 g_free(user->username);
998 g_free(user->band_name);
999 g_free(user->song_name);
1000 g_free(user->image_url); 1011 g_free(user->image_url);
1001 g_free(user); 1012 g_free(user);
1002 } 1013 }
1003 g_free(username); 1014 g_free(username);
1004 } 1015 }