comparison finch/gntmedia.c @ 26411:86bc2d34f689

Rename state-changed enum and values.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 21 Mar 2009 03:49:11 +0000
parents 31236ac583ef
children 99d58fee24b1
comparison
equal deleted inserted replaced
26410:144802b7ed77 26411:86bc2d34f689
224 gnt_box_readjust(GNT_BOX(parent)); 224 gnt_box_readjust(GNT_BOX(parent));
225 gnt_widget_draw(parent); 225 gnt_widget_draw(parent);
226 } 226 }
227 227
228 static void 228 static void
229 finch_media_state_changed_cb(PurpleMedia *media, 229 finch_media_state_changed_cb(PurpleMedia *media, PurpleMediaState state,
230 PurpleMediaStateChangedType type,
231 gchar *sid, gchar *name, FinchMedia *gntmedia) 230 gchar *sid, gchar *name, FinchMedia *gntmedia)
232 { 231 {
233 purple_debug_info("gntmedia", "type: %d sid: %s name: %s\n", 232 purple_debug_info("gntmedia", "state: %d sid: %s name: %s\n",
234 type, sid, name); 233 state, sid, name);
235 if (sid == NULL && name == NULL) { 234 if (sid == NULL && name == NULL) {
236 if (type == PURPLE_MEDIA_STATE_CHANGED_END) { 235 if (state == PURPLE_MEDIA_STATE_END) {
237 finch_media_emit_message(gntmedia, 236 finch_media_emit_message(gntmedia,
238 _("The call has been terminated.")); 237 _("The call has been terminated."));
239 finch_conversation_set_info_widget( 238 finch_conversation_set_info_widget(
240 gntmedia->priv->conv, NULL); 239 gntmedia->priv->conv, NULL);
241 gnt_widget_destroy(GNT_WIDGET(gntmedia)); 240 gnt_widget_destroy(GNT_WIDGET(gntmedia));
243 * XXX: This shouldn't have to be here 242 * XXX: This shouldn't have to be here
244 * to free the FinchMedia widget. 243 * to free the FinchMedia widget.
245 */ 244 */
246 g_object_unref(gntmedia); 245 g_object_unref(gntmedia);
247 } 246 }
248 } else if (type == PURPLE_MEDIA_STATE_CHANGED_NEW 247 } else if (state == PURPLE_MEDIA_STATE_NEW
249 && sid != NULL && name != NULL) { 248 && sid != NULL && name != NULL) {
250 finch_media_ready_cb(media, gntmedia); 249 finch_media_ready_cb(media, gntmedia);
251 } else if (type == PURPLE_MEDIA_STATE_CHANGED_CONNECTED) { 250 } else if (state == PURPLE_MEDIA_STATE_CONNECTED) {
252 finch_media_accept_cb(media, gntmedia); 251 finch_media_accept_cb(media, gntmedia);
253 } 252 }
254 } 253 }
255 254
256 static void 255 static void