empathy r1960 - trunk/libempathy



Author: xclaesse
Date: Fri Dec 12 09:40:14 2008
New Revision: 1960
URL: http://svn.gnome.org/viewvc/empathy?rev=1960&view=rev

Log:
add empathy_tp_group_get_flags (Guillaume Desmottes)

Modified:
   trunk/libempathy/empathy-tp-group.c
   trunk/libempathy/empathy-tp-group.h

Modified: trunk/libempathy/empathy-tp-group.c
==============================================================================
--- trunk/libempathy/empathy-tp-group.c	(original)
+++ trunk/libempathy/empathy-tp-group.c	Fri Dec 12 09:40:14 2008
@@ -27,6 +27,7 @@
 #include <telepathy-glib/channel.h>
 #include <telepathy-glib/util.h>
 #include <telepathy-glib/interfaces.h>
+#include <telepathy-glib/channel.h>
 
 #include "empathy-tp-group.h"
 #include "empathy-contact-factory.h"
@@ -968,3 +969,13 @@
 	return invitation;
 }
 
+TpChannelGroupFlags
+empathy_tp_group_get_flags (EmpathyTpGroup *self)
+{
+  EmpathyTpGroupPriv *priv = GET_PRIV (self);
+
+  if (priv->channel == NULL)
+    return 0;
+
+  return tp_channel_group_get_flags (priv->channel);
+}

Modified: trunk/libempathy/empathy-tp-group.h
==============================================================================
--- trunk/libempathy/empathy-tp-group.h	(original)
+++ trunk/libempathy/empathy-tp-group.h	Fri Dec 12 09:40:14 2008
@@ -86,6 +86,7 @@
 							  EmpathyContact     *actor,
 							  const gchar        *message);
 void                empathy_pending_info_free            (EmpathyPendingInfo *info);
+TpChannelGroupFlags empathy_tp_group_get_flags         (EmpathyTpGroup     *group);
 
 G_END_DECLS
 



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