Mercurial > pidgin
comparison libpurple/protocols/myspace/zap.c @ 23693:797377cbd5bf
Change the other prpls to use new purple_prpl_{send,got}_attention API.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 10 Aug 2008 05:11:59 +0000 |
parents | eab7d03edfcb |
children | fae699fece1f 16734635febf |
comparison
equal
deleted
inserted
replaced
23692:d3262085b7a7 | 23693:797377cbd5bf |
---|---|
181 gc = purple_account_get_connection(account); | 181 gc = purple_account_get_connection(account); |
182 session = (MsimSession *)gc->proto_data; | 182 session = (MsimSession *)gc->proto_data; |
183 | 183 |
184 zap = GPOINTER_TO_INT(zap_num_ptr); | 184 zap = GPOINTER_TO_INT(zap_num_ptr); |
185 | 185 |
186 serv_send_attention(session->gc, buddy->name, zap); | 186 purple_prpl_send_attention(session->gc, buddy->name, zap); |
187 } | 187 } |
188 | 188 |
189 /** Return menu, if any, for a buddy list node. */ | 189 /** Return menu, if any, for a buddy list node. */ |
190 GList * | 190 GList * |
191 msim_blist_node_menu(PurpleBlistNode *node) | 191 msim_blist_node_menu(PurpleBlistNode *node) |
239 | 239 |
240 g_return_val_if_fail(sscanf(msg_text, "!!!ZAP_SEND!!!=RTE_BTN_ZAPS_%d", &zap) == 1, FALSE); | 240 g_return_val_if_fail(sscanf(msg_text, "!!!ZAP_SEND!!!=RTE_BTN_ZAPS_%d", &zap) == 1, FALSE); |
241 | 241 |
242 zap = CLAMP(zap, 0, 9); | 242 zap = CLAMP(zap, 0, 9); |
243 | 243 |
244 serv_got_attention(session->gc, username, zap); | 244 purple_prpl_got_attention(session->gc, username, zap); |
245 | 245 |
246 g_free(msg_text); | 246 g_free(msg_text); |
247 g_free(username); | 247 g_free(username); |
248 | 248 |
249 return TRUE; | 249 return TRUE; |