changeset 26095:8b95080061ed

Close the request dialog if the remote user hung up.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 05 Feb 2009 08:46:05 +0000
parents 08a3749993fe
children ee3f63fbd071
files pidgin/gtkmedia.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkmedia.c	Thu Feb 05 08:32:54 2009 +0000
+++ b/pidgin/gtkmedia.c	Thu Feb 05 08:46:05 2009 +0000
@@ -370,6 +370,7 @@
 	purple_debug_info("gtkmedia", "pidgin_media_dispose\n");
 
 	if (gtkmedia->priv->media) {
+		purple_request_close_with_handle(gtkmedia);
 		purple_media_remove_output_windows(gtkmedia->priv->media);
 		pidgin_media_disconnect_levels(gtkmedia->priv->media, gtkmedia);
 		g_object_unref(gtkmedia->priv->media);
@@ -785,7 +786,7 @@
 	if (initiator == FALSE) {
 		gchar *message = g_strdup_printf("%s wishes to start a "
 				"media session with you\n", alias);
-		purple_request_accept_cancel(media, "Media invitation",
+		purple_request_accept_cancel(gtkmedia, "Media invitation",
 				message, NULL, 1, (void*)pc, screenname,
 				NULL, media, purple_media_accept,
 				purple_media_reject);