aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-new-message-dialog.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 /libempathy-gtk/empathy-new-message-dialog.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 'libempathy-gtk/empathy-new-message-dialog.c')
-rw-r--r--libempathy-gtk/empathy-new-message-dialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index 6cdab4654..a17481437 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -60,17 +60,17 @@ G_DEFINE_TYPE(EmpathyNewMessageDialog, empathy_new_message_dialog,
static void
empathy_new_message_dialog_response (GtkDialog *dialog, int response_id)
{
- TpConnection *connection;
+ TpAccount *account;
const gchar *contact_id;
if (response_id != GTK_RESPONSE_ACCEPT) goto out;
contact_id = empathy_contact_selector_dialog_get_selected (
- EMPATHY_CONTACT_SELECTOR_DIALOG (dialog), &connection, NULL);
+ EMPATHY_CONTACT_SELECTOR_DIALOG (dialog), NULL, &account);
- if (EMP_STR_EMPTY (contact_id) || connection == NULL) goto out;
+ if (EMP_STR_EMPTY (contact_id) || account == NULL) goto out;
- empathy_dispatcher_chat_with_contact_id (connection, contact_id,
+ empathy_dispatcher_chat_with_contact_id (account, contact_id,
gtk_get_current_event_time ());
out: