empathy r634 - trunk/libempathy



Author: xclaesse
Date: Fri Feb 15 21:29:16 2008
New Revision: 634
URL: http://svn.gnome.org/viewvc/empathy?rev=634&view=rev

Log:
Add self contact to the group iface of media channel.


Modified:
   trunk/libempathy/empathy-utils.c

Modified: trunk/libempathy/empathy-utils.c
==============================================================================
--- trunk/libempathy/empathy-utils.c	(original)
+++ trunk/libempathy/empathy-utils.c	Fri Feb 15 21:29:16 2008
@@ -401,14 +401,16 @@
 empathy_call_with_contact (EmpathyContact *contact)
 {
 #ifdef HAVE_VOIP
-	MissionControl *mc;
-	McAccount      *account;
-	TpConn         *tp_conn;
-	gchar          *object_path;
-	const gchar    *bus_name;
-	TpChan         *new_chan;
-	EmpathyTpGroup *group;
-	GError         *error = NULL;
+	MissionControl        *mc;
+	McAccount             *account;
+	TpConn                *tp_conn;
+	gchar                 *object_path;
+	const gchar           *bus_name;
+	TpChan                *new_chan;
+	EmpathyContactFactory *factory;
+	EmpathyTpGroup        *group;
+	EmpathyContact        *self_contact;
+	GError                *error = NULL;
 
 	g_return_if_fail (EMPATHY_IS_CONTACT (contact));
 
@@ -446,8 +448,13 @@
 				0);
 
 	group = empathy_tp_group_new (account, new_chan);
+	factory = empathy_contact_factory_new ();
+	self_contact = empathy_contact_factory_get_user (factory, account);
 	empathy_tp_group_add_member (group, contact, "");
+	empathy_tp_group_add_member (group, self_contact, "");	
 
+	g_object_unref (factory);
+	g_object_unref (self_contact);
 	g_object_unref (group);
 	g_object_unref (mc);
 	g_object_unref (tp_conn);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]