diff pidgin/gtkmedia.c @ 26452:c0846d6659c6

Remove purple_media_reject.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 30 Mar 2009 00:55:29 +0000
parents 2862fee7acf2
children 12c7db418c3e
line wrap: on
line diff
--- a/pidgin/gtkmedia.c	Mon Mar 30 00:45:14 2009 +0000
+++ b/pidgin/gtkmedia.c	Mon Mar 30 00:55:29 2009 +0000
@@ -812,6 +812,13 @@
 	gtkmedia->priv->state = state;
 }
 
+static void
+pidgin_media_reject_cb(PurpleMedia *media, int index)
+{
+	purple_media_stream_info(media, PURPLE_MEDIA_INFO_REJECT,
+			NULL, NULL, TRUE);
+}
+
 static gboolean
 pidgin_media_new_cb(PurpleMediaManager *manager, PurpleMedia *media,
 		PurpleConnection *pc, gchar *screenname, gpointer nul)
@@ -833,7 +840,7 @@
 		purple_request_accept_cancel(gtkmedia, "Media invitation",
 				message, NULL, PURPLE_DEFAULT_ACTION_NONE,
 				(void*)pc, screenname, NULL, media,
-				purple_media_accept, purple_media_reject);
+				purple_media_accept, pidgin_media_reject_cb);
 		g_free(message);
 	} else
 		gtk_widget_show(GTK_WIDGET(gtkmedia));