diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-01-02 05:29:21 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-01-02 05:29:21 +0800 |
commit | c847ef7be41a4b65c8a315748e6550afc58e0534 (patch) | |
tree | 99644087c07e90132cd3c07df505a64e2c3edc24 /libempathy-gtk/empathy-new-message-dialog.c | |
parent | e079810e7dbeee747d9260cc18daae473b03761b (diff) | |
download | gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar.gz gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar.bz2 gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar.lz gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar.xz gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.tar.zst gsoc2013-empathy-c847ef7be41a4b65c8a315748e6550afc58e0534.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.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@527 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-new-message-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-new-message-dialog.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c index 7a3fd9731..80e3b611c 100644 --- a/libempathy-gtk/empathy-new-message-dialog.c +++ b/libempathy-gtk/empathy-new-message-dialog.c @@ -56,8 +56,8 @@ new_message_dialog_response_cb (GtkWidget *widget, gint response, EmpathyNewMessageDialog *dialog) { - McAccount *account; - const gchar *id; + McAccount *account; + const gchar *id; account = empathy_account_chooser_get_account (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser)); id = gtk_entry_get_text (GTK_ENTRY (dialog->entry_id)); @@ -70,16 +70,7 @@ new_message_dialog_response_cb (GtkWidget *widget, } if (response == GTK_RESPONSE_OK) { - MissionControl *mc; - - mc = empathy_mission_control_new (); - mission_control_request_channel_with_string_handle (mc, - account, - TP_IFACE_CHANNEL_TYPE_TEXT, - id, - TP_HANDLE_TYPE_CONTACT, - NULL, NULL); - g_object_unref (mc); + empathy_chat_with_contact_id (account, id); } else if (response == 3) { EmpathyContactFactory *factory; |