Mercurial > pidgin
comparison libpurple/media.c @ 26326:8c21dbe149d8
Remove rejected and hangup states from state-changed.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Sat, 21 Mar 2009 02:25:09 +0000 |
parents | 8b4394e84633 |
children | db9d2a760329 |
comparison
equal
deleted
inserted
replaced
26325:31236ac583ef | 26326:8c21dbe149d8 |
---|---|
1404 | 1404 |
1405 void | 1405 void |
1406 purple_media_hangup(PurpleMedia *media) | 1406 purple_media_hangup(PurpleMedia *media) |
1407 { | 1407 { |
1408 g_return_if_fail(PURPLE_IS_MEDIA(media)); | 1408 g_return_if_fail(PURPLE_IS_MEDIA(media)); |
1409 g_signal_emit(media, purple_media_signals[STATE_CHANGED], | |
1410 0, PURPLE_MEDIA_STATE_CHANGED_HANGUP, | |
1411 NULL, NULL); | |
1412 g_signal_emit(media, purple_media_signals[STREAM_INFO], | 1409 g_signal_emit(media, purple_media_signals[STREAM_INFO], |
1413 0, PURPLE_MEDIA_INFO_HANGUP, | 1410 0, PURPLE_MEDIA_INFO_HANGUP, |
1414 NULL, NULL); | 1411 NULL, NULL); |
1415 purple_media_end(media, NULL, NULL); | 1412 purple_media_end(media, NULL, NULL); |
1416 } | 1413 } |
1417 | 1414 |
1418 void | 1415 void |
1419 purple_media_reject(PurpleMedia *media) | 1416 purple_media_reject(PurpleMedia *media) |
1420 { | 1417 { |
1421 g_return_if_fail(PURPLE_IS_MEDIA(media)); | 1418 g_return_if_fail(PURPLE_IS_MEDIA(media)); |
1422 g_signal_emit(media, purple_media_signals[STATE_CHANGED], | |
1423 0, PURPLE_MEDIA_STATE_CHANGED_REJECTED, | |
1424 NULL, NULL); | |
1425 g_signal_emit(media, purple_media_signals[STREAM_INFO], | 1419 g_signal_emit(media, purple_media_signals[STREAM_INFO], |
1426 0, PURPLE_MEDIA_INFO_REJECT, | 1420 0, PURPLE_MEDIA_INFO_REJECT, |
1427 NULL, NULL); | 1421 NULL, NULL); |
1428 purple_media_end(media, NULL, NULL); | 1422 purple_media_end(media, NULL, NULL); |
1429 } | 1423 } |