aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c13
1 files changed, 8 insertions, 5 deletions
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 <libempathy/empathy-utils.h>
#include <libempathy/empathy-dispatcher.h>
#include <libempathy/empathy-tp-chat.h>
-#include <libempathy/empathy-tp-call.h>
+#include <libempathy/empathy-tp-group.h>
#include <libempathy-gtk/empathy-conf.h>
@@ -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);
+ }
}
}