[empathy] contact-search-dialog: use empathy_display_individual_info()



commit 634a85b3d20ef79e77069ef93e4c9a6f45a12cf8
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jul 11 10:47:24 2012 +0200

    contact-search-dialog: use empathy_display_individual_info()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679111

 libempathy-gtk/empathy-contact-search-dialog.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index 82ca6cc..d1fd0cf 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -34,7 +34,7 @@
 #include <libempathy-gtk/empathy-account-chooser.h>
 #include <libempathy-gtk/empathy-cell-renderer-text.h>
 #include <libempathy-gtk/empathy-cell-renderer-activatable.h>
-#include <libempathy-gtk/empathy-contact-dialogs.h>
+#include <libempathy-gtk/empathy-individual-information-dialog.h>
 #include <libempathy-gtk/empathy-images.h>
 
 #define DEBUG_FLAG EMPATHY_DEBUG_OTHER
@@ -454,6 +454,7 @@ on_profile_button_got_contact_cb (GObject *source,
 {
   GError *error = NULL;
   EmpathyContact *contact;
+  FolksIndividual *individual;
 
   contact = empathy_client_factory_dup_contact_by_id_finish (
         EMPATHY_CLIENT_FACTORY (source), result, &error);
@@ -464,9 +465,13 @@ on_profile_button_got_contact_cb (GObject *source,
       return;
     }
 
-  empathy_contact_information_dialog_show (contact, NULL);
+  individual = empathy_ensure_individual_from_tp_contact (
+    empathy_contact_get_tp_contact (contact));
+
+  empathy_display_individual_info (individual);
 
   g_object_unref (contact);
+  g_object_unref (individual);
 }
 
 static void



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