empathy r1294 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1294 - trunk/src
- Date: Mon, 4 Aug 2008 13:52:00 +0000 (UTC)
Author: xclaesse
Date: Mon Aug 4 13:51:59 2008
New Revision: 1294
URL: http://svn.gnome.org/viewvc/empathy?rev=1294&view=rev
Log:
Pick the correct contact alias for the message telling incoming call is rejected. Fixes bug #546218.
Modified:
trunk/src/empathy-call-window.c
Modified: trunk/src/empathy-call-window.c
==============================================================================
--- trunk/src/empathy-call-window.c (original)
+++ trunk/src/empathy-call-window.c Mon Aug 4 13:51:59 2008
@@ -30,6 +30,7 @@
#include <libempathy/empathy-contact.h>
#include <libempathy/empathy-tp-call.h>
+#include <libempathy/empathy-tp-group.h>
#include <libempathy/empathy-utils.h>
#include <libempathy-gtk/empathy-ui-utils.h>
@@ -506,8 +507,13 @@
{
GtkWidget *dialog;
EmpathyContact *contact;
+ EmpathyTpGroup *tp_group;
- g_object_get (window->call, "contact", &contact, NULL);
+ tp_group = empathy_tp_group_new (channel);
+ empathy_run_until_ready (tp_group);
+ empathy_tp_group_get_invitation (tp_group, &contact);
+ empathy_contact_run_until_ready (contact, EMPATHY_CONTACT_READY_NAME,
+ NULL);
/* We don't want to have multiple calls running.
* FIXME: We should use the hold interface... */
@@ -519,6 +525,7 @@
" running call."), empathy_contact_get_name (contact));
g_object_unref (contact);
+ g_object_unref (tp_group);
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]