From ec55d4f9308a0eb65c6ea5de7e9757e9d8b0b70f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 18 May 2008 14:27:44 +0000 Subject: Improve dispatcher. Fixes bug #465928. svn path=/trunk/; revision=1108 --- src/empathy.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/empathy.c') diff --git a/src/empathy.c b/src/empathy.c index 242f946a1..19d9cb220 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include @@ -98,11 +98,14 @@ dispatch_channel_cb (EmpathyDispatcher *dispatcher, g_object_unref (tp_chat); } else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) { - EmpathyTpCall *tp_call; + GtkWidget *window; - tp_call = empathy_tp_call_new (channel); - empathy_call_window_new (tp_call); - g_object_unref (tp_call); + window = empathy_call_window_find (channel); + if (window) { + gtk_window_present (GTK_WINDOW (window)); + } else { + empathy_call_window_new (channel); + } } } -- cgit v1.2.3