# HG changeset patch # User jakub.adam@ktknet.cz # Date 1301009964 0 # Node ID db480fe010d5cf90fa0d0d9c9b1c05700e6f04bc # Parent 9f8da7c21afd256e78fb5cb1c7ed4d727d409470 Adapt Pidgin's incoming call dialog behavior so that rejecting the addition of a stream to an active call doesn't kill the existing call. committer: John Bailey diff -r 9f8da7c21afd -r db480fe010d5 pidgin/gtkmedia.c --- a/pidgin/gtkmedia.c Thu Mar 24 23:35:26 2011 +0000 +++ b/pidgin/gtkmedia.c Thu Mar 24 23:39:24 2011 +0000 @@ -595,8 +595,13 @@ static void pidgin_media_reject_cb(PurpleMedia *media, int index) { - purple_media_stream_info(media, PURPLE_MEDIA_INFO_REJECT, - NULL, NULL, TRUE); + GList *iter = purple_media_get_session_ids(media); + for (; iter; iter = g_list_delete_link(iter, iter)) { + const gchar *sessionid = iter->data; + if (!purple_media_accepted(media, sessionid, NULL)) + purple_media_stream_info(media, PURPLE_MEDIA_INFO_REJECT, + sessionid, NULL, TRUE); + } } static gboolean