changeset 26408: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 31236ac583ef
children db9d2a760329
files libpurple/media.c libpurple/media.h
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Sat Mar 21 01:37:50 2009 +0000
+++ b/libpurple/media.c	Sat Mar 21 02:25:09 2009 +0000
@@ -1406,9 +1406,6 @@
 purple_media_hangup(PurpleMedia *media)
 {
 	g_return_if_fail(PURPLE_IS_MEDIA(media));
-	g_signal_emit(media, purple_media_signals[STATE_CHANGED],
-			0, PURPLE_MEDIA_STATE_CHANGED_HANGUP,
-			NULL, NULL);
 	g_signal_emit(media, purple_media_signals[STREAM_INFO],
 			0, PURPLE_MEDIA_INFO_HANGUP,
 			NULL, NULL);
@@ -1419,9 +1416,6 @@
 purple_media_reject(PurpleMedia *media)
 {
 	g_return_if_fail(PURPLE_IS_MEDIA(media));
-	g_signal_emit(media, purple_media_signals[STATE_CHANGED],
-			0, PURPLE_MEDIA_STATE_CHANGED_REJECTED,
-			NULL, NULL);
 	g_signal_emit(media, purple_media_signals[STREAM_INFO],
 			0, PURPLE_MEDIA_INFO_REJECT,
 			NULL, NULL);
--- a/libpurple/media.h	Sat Mar 21 01:37:50 2009 +0000
+++ b/libpurple/media.h	Sat Mar 21 02:25:09 2009 +0000
@@ -92,8 +92,6 @@
 typedef enum {
 	PURPLE_MEDIA_STATE_CHANGED_NEW = 0,
 	PURPLE_MEDIA_STATE_CHANGED_CONNECTED,
-	PURPLE_MEDIA_STATE_CHANGED_REJECTED,	/** Local user rejected the stream. */
-	PURPLE_MEDIA_STATE_CHANGED_HANGUP,	/** Local user hung up the stream */
 	PURPLE_MEDIA_STATE_CHANGED_END,
 } PurpleMediaStateChangedType;