From b020c790f9d30e23c34bc5a7fec1a4de4c2aa528 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 29 Jun 2012 14:18:13 +0200 Subject: event-manager: use EmpathySubscriptionDialog https://bugzilla.gnome.org/show_bug.cgi?id=679136 --- src/empathy-event-manager.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/empathy-event-manager.c') diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index d10af58e8..c4d2e09a9 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -38,10 +38,10 @@ #include #include -#include #include #include #include +#include #include "empathy-event-manager.h" #include "empathy-roster-window.h" @@ -1063,9 +1063,18 @@ approve_channels (TpSimpleApprover *approver, static void event_pending_subscribe_func (EventPriv *event) { - empathy_subscription_dialog_show (event->public.contact, event->public.header, - NULL); + GtkWidget *dialog; + FolksIndividual *individual; + + individual = empathy_ensure_individual_from_tp_contact ( + empathy_contact_get_tp_contact (event->public.contact)); + + dialog = empathy_subscription_dialog_new (individual, event->public.message); + gtk_window_present (GTK_WINDOW (dialog)); + event_remove (event); + + g_object_unref (individual); } static void -- cgit v1.2.3