aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 20:48:40 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 20:48:40 +0800
commit72e7c137e1ce5f45c93583540b04fc106b2656d1 (patch)
treecd677ec06bbbfbe53506e706be9e40497ffa3859 /src/empathy-chat-window.c
parent8a8ba7a5697c6e5494854c99dc9aa4a7fc7a45bd (diff)
downloadgsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.gz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.bz2
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.lz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.xz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.zst
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.zip
empathy_dispatcher_chat_with_contact_id: get a TpAccount instead of a TpConnection
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 93c1ab773..27d6dd874 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1738,14 +1738,8 @@ chat_window_drag_data_received (GtkWidget *widget,
}
if (!chat) {
- TpConnection *connection;
-
- connection = tp_account_get_connection (account);
-
- if (connection) {
- empathy_dispatcher_chat_with_contact_id (
- connection, contact_id, gtk_get_current_event_time ());
- }
+ empathy_dispatcher_chat_with_contact_id (
+ account, contact_id, gtk_get_current_event_time ());
g_strfreev (strv);
return;