]> git.0d.be Git - empathy.git/commitdiff
Fix capabilities update, the NOT operator is ~ and not !
authorXavier Claessens <xclaesse@gmail.com>
Wed, 26 Sep 2007 14:40:14 +0000 (14:40 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 26 Sep 2007 14:40:14 +0000 (14:40 +0000)
2007-09-26  Xavier Claessens  <xclaesse@gmail.com>

* libempathy/empathy-contact-factory.c: Fix capabilities update, the NOT
operator is ~ and not !

svn path=/trunk/; revision=319

ChangeLog
libempathy/empathy-contact-factory.c

index 8a615f7ae84a8f47550d5aef026376228e5813c2..be7fd0a00a64be308282cdbb6806bd4b462b86db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-26  Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy/empathy-contact-factory.c: Fix capabilities update, the NOT
+       operator is ~ and not !
+
 2007-09-26  Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy-gtk/empathy-profile-chooser.c:
index fe670e4e64735c9c2238f2da5ebd4be8dab59740..ec0d7bac800ab0154098901b3ca624a9caaf6308 100644 (file)
@@ -396,8 +396,8 @@ contact_factory_update_capabilities (ContactFactoryAccountData *account_data,
        capabilities = empathy_contact_get_capabilities (contact);
 
        if (strcmp (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA) == 0) {
-               capabilities &= !(EMPATHY_CAPABILITIES_AUDIO);
-               capabilities &= !(EMPATHY_CAPABILITIES_VIDEO);
+               capabilities &= ~EMPATHY_CAPABILITIES_AUDIO;
+               capabilities &= ~EMPATHY_CAPABILITIES_VIDEO;
                if (specific & TP_CHANNEL_MEDIA_CAPABILITY_AUDIO) {
                        capabilities |= EMPATHY_CAPABILITIES_AUDIO;
                }