empathy r638 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r638 - trunk/libempathy
- Date: Fri, 15 Feb 2008 22:28:46 +0000 (GMT)
Author: xclaesse
Date: Fri Feb 15 22:28:46 2008
New Revision: 638
URL: http://svn.gnome.org/viewvc/empathy?rev=638&view=rev
Log:
Cleanup code from previous merge
Modified:
trunk/libempathy/empathy-contact.c
trunk/libempathy/empathy-tp-call.c
trunk/libempathy/empathy-tp-contact-factory.c
Modified: trunk/libempathy/empathy-contact.c
==============================================================================
--- trunk/libempathy/empathy-contact.c (original)
+++ trunk/libempathy/empathy-contact.c Fri Feb 15 22:28:46 2008
@@ -159,7 +159,7 @@
"Contact Capabilities",
"Capabilities of the contact",
EMPATHY_TYPE_CAPABILITIES,
- 0,
+ EMPATHY_CAPABILITIES_UNKNOWN,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
@@ -176,10 +176,6 @@
static void
empathy_contact_init (EmpathyContact *contact)
{
- EmpathyContactPriv *priv;
-
- priv = GET_PRIV (contact);
- priv->capabilities = EMPATHY_CAPABILITIES_UNKNOWN;
}
static void
Modified: trunk/libempathy/empathy-tp-call.c
==============================================================================
--- trunk/libempathy/empathy-tp-call.c (original)
+++ trunk/libempathy/empathy-tp-call.c Fri Feb 15 22:28:46 2008
@@ -327,13 +327,14 @@
static void
tp_call_request_streams_capabilities_cb (EmpathyContact *contact,
- GParamSpec *property, gpointer user_data)
+ GParamSpec *property,
+ gpointer user_data)
{
EmpathyTpCall *call = EMPATHY_TP_CALL (user_data);
g_signal_handlers_disconnect_by_func (contact,
- tp_call_request_streams_capabilities_cb,
- user_data);
+ tp_call_request_streams_capabilities_cb,
+ user_data);
tp_call_request_streams_for_capabilities (call,
empathy_contact_get_capabilities (contact));
@@ -361,11 +362,12 @@
else
{
capabilities = empathy_contact_get_capabilities (priv->contact);
- if (capabilities == EMPATHY_CAPABILITIES_UNKNOWN) {
- g_signal_connect (G_OBJECT (priv->contact), "notify::capabilities",
- G_CALLBACK (tp_call_request_streams_capabilities_cb), call);
- return;
- }
+ if (capabilities == EMPATHY_CAPABILITIES_UNKNOWN)
+ {
+ g_signal_connect (priv->contact, "notify::capabilities",
+ G_CALLBACK (tp_call_request_streams_capabilities_cb), call);
+ return;
+ }
}
tp_call_request_streams_for_capabilities (call, capabilities);
Modified: trunk/libempathy/empathy-tp-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-tp-contact-factory.c (original)
+++ trunk/libempathy/empathy-tp-contact-factory.c Fri Feb 15 22:28:46 2008
@@ -505,7 +505,8 @@
capabilities = empathy_contact_get_capabilities (contact);
if (strcmp (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA) == 0) {
- capabilities = EMPATHY_CAPABILITIES_NONE;
+ capabilities &= ~EMPATHY_CAPABILITIES_AUDIO;
+ capabilities &= ~EMPATHY_CAPABILITIES_VIDEO;
if (specific & TP_CHANNEL_MEDIA_CAPABILITY_AUDIO) {
capabilities |= EMPATHY_CAPABILITIES_AUDIO;
}
@@ -533,7 +534,7 @@
if (error) {
empathy_debug (DEBUG_DOMAIN, "Error getting capabilities: %s",
- error->message);
+ error->message);
/* FIXME Should set the capabilities of the contacts for which this request
* originated to NONE */
goto OUT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]