]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-factory.c
Use tp-glib generated code for file transfers rather than extensions.
[empathy.git] / libempathy / empathy-tp-contact-factory.c
index c407ea49e402248e9a74680afbe4b8e8dddc9b2d..d83ba12a8ce146203497f4e86d664272c96ddb09 100644 (file)
@@ -130,7 +130,7 @@ tp_contact_factory_presences_table_foreach (const gchar    *state_str,
                message_str = g_value_get_string (message);
        }
 
-       if (!G_STR_EMPTY (message_str)) {
+       if (!EMP_STR_EMPTY (message_str)) {
                empathy_contact_set_presence_message (contact, message_str);
        } else {
                empathy_contact_set_presence_message (contact, NULL);
@@ -384,7 +384,7 @@ tp_contact_factory_avatar_maybe_update (EmpathyTpContactFactory *tp_factory,
        }
 
        /* Check if we have an avatar */
-       if (G_STR_EMPTY (token)) {
+       if (EMP_STR_EMPTY (token)) {
                empathy_contact_set_avatar (contact, NULL);
                return TRUE;
        }
@@ -783,12 +783,12 @@ tp_contact_factory_ready (EmpathyTpContactFactory *tp_factory)
                handle = empathy_contact_get_handle (contact);
                id = empathy_contact_get_id (contact);
                if (handle == 0) {
-                       g_assert (!G_STR_EMPTY (id));
+                       g_assert (!EMP_STR_EMPTY (id));
                        g_array_append_val (handle_needed, id);
                        handle_needed_contacts = g_list_prepend (handle_needed_contacts,
                                                                 g_object_ref (contact));
                }
-               if (G_STR_EMPTY (id)) {
+               if (EMP_STR_EMPTY (id)) {
                        g_array_append_val (id_needed, handle);
                        id_needed_contacts = g_list_prepend (id_needed_contacts,
                                                             g_object_ref (contact));
@@ -856,7 +856,7 @@ get_requestable_channel_classes_cb (TpProxy *connection,
                        TP_IFACE_CHANNEL ".ChannelType");
                if (chan_type == NULL ||
                    tp_strdiff (g_value_get_string (chan_type),
-                               EMP_IFACE_CHANNEL_TYPE_FILE_TRANSFER)) {
+                               TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER)) {
                        continue;
                }