]> git.0d.be Git - empathy.git/blobdiff - src/empathy-chat-window.c
include telepathy-glib.h
[empathy.git] / src / empathy-chat-window.c
index 0c01617bb93924ab8c82b640df9baa0e4e7206fc..f21db0335c92b8cc2b12a47c6e7127fed4d28b7d 100644 (file)
@@ -35,8 +35,6 @@
 #include <glib/gi18n.h>
 #include <libnotify/notification.h>
 
-#include <telepathy-glib/telepathy-glib.h>
-
 #include <libempathy/empathy-client-factory.h>
 #include <libempathy/empathy-contact.h>
 #include <libempathy/empathy-message.h>
@@ -584,7 +582,7 @@ chat_window_conversation_menu_update (EmpathyChatWindow *self)
 
   if (tp_chat != NULL)
     {
-      connection = tp_channel_borrow_connection (TP_CHANNEL (tp_chat));
+      connection = tp_channel_get_connection (TP_CHANNEL (tp_chat));
 
       sensitive = empathy_tp_chat_can_add_contact (tp_chat) &&
         (tp_connection_get_status (connection, NULL) ==
@@ -2037,7 +2035,7 @@ drag_data_received_individual_id (EmpathyChatWindow *self,
       goto out;
     }
 
-  conn = tp_channel_borrow_connection ((TpChannel *) chat);
+  conn = tp_channel_get_connection ((TpChannel *) chat);
   tp_contact = empathy_get_tp_contact_for_individual (individual, conn);
   if (tp_contact == NULL)
     {