diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-01-02 05:29:21 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-01-02 05:29:21 +0800 |
commit | 6fd6f3b1081a5b72054ef135346da0d5eb979590 (patch) | |
tree | 99644087c07e90132cd3c07df505a64e2c3edc24 /libempathy-gtk/empathy-private-chat.c | |
parent | f4d9313a82b4ce88b87bba1427fdbece4f1d00ad (diff) | |
download | gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar.gz gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar.bz2 gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar.lz gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar.xz gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.tar.zst gsoc2013-empathy-6fd6f3b1081a5b72054ef135346da0d5eb979590.zip |
Add convinience functions empathy_chat_with_contact() and empathy_chat_with_contact_id() to start a chat with a contact. Make use of it when appropriate.
svn path=/trunk/; revision=527
Diffstat (limited to 'libempathy-gtk/empathy-private-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-private-chat.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-private-chat.c b/libempathy-gtk/empathy-private-chat.c index 9af944174..2dd1ba755 100644 --- a/libempathy-gtk/empathy-private-chat.c +++ b/libempathy-gtk/empathy-private-chat.c @@ -251,16 +251,7 @@ private_chat_contact_presence_updated_cb (EmpathyContact *contact, /* If offline message is not supported by CM we need to * request a new Text Channel. */ if (!empathy_chat_is_connected (EMPATHY_CHAT (chat))) { - MissionControl *mc; - - mc = empathy_mission_control_new (); - mission_control_request_channel (mc, - empathy_contact_get_account (contact), - TP_IFACE_CHANNEL_TYPE_TEXT, - empathy_contact_get_handle (contact), - TP_HANDLE_TYPE_CONTACT, - NULL, NULL); - g_object_unref (mc); + empathy_chat_with_contact (contact); } } |