[empathy/gnome-2-34] Contact Search: close the dialog when adding a contact



commit 9900a3a35d66a9e00ea82dee37895f7d8b54faa3
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Thu Mar 17 11:58:56 2011 +0000

    Contact Search: close the dialog when adding a contact

 libempathy-gtk/empathy-contact-search-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index 0919671..68b0652 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -172,6 +172,9 @@ add_selected_contact (EmpathyContactSearchDialog *self)
   empathy_tp_contact_factory_get_from_id (conn, id,
       on_get_contact_factory_get_from_id_cb, NULL,
       NULL, NULL);
+
+  /* Close the dialog */
+  gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_CANCEL);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]