]> git.0d.be Git - empathy.git/commitdiff
log-window: use empathy_display_individual_info()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Jul 2012 08:47:24 +0000 (10:47 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Jul 2012 09:34:56 +0000 (11:34 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=679111

libempathy-gtk/empathy-log-window.c

index dec7b3713ccced91d39ba5a2347a3c48e5f9f89f..ff274a6aa42d96698c7f4ab71a805cd5e8a09c45 100644 (file)
@@ -51,7 +51,7 @@
 #include "empathy-log-window.h"
 #include "empathy-account-chooser.h"
 #include "empathy-call-utils.h"
-#include "empathy-contact-dialogs.h"
+#include "empathy-individual-information-dialog.h"
 #include "empathy-images.h"
 #include "empathy-theme-manager.h"
 #include "empathy-ui-utils.h"
@@ -319,11 +319,17 @@ static void
 toolbutton_profile_clicked (GtkToolButton *toolbutton,
     EmpathyLogWindow *self)
 {
+  FolksIndividual *individual;
+
   g_return_if_fail (self != NULL);
   g_return_if_fail (EMPATHY_IS_CONTACT (self->priv->selected_contact));
 
-  empathy_contact_information_dialog_show (self->priv->selected_contact,
-      GTK_WINDOW (self));
+  individual = empathy_ensure_individual_from_tp_contact (
+      empathy_contact_get_tp_contact (self->priv->selected_contact));
+
+  empathy_display_individual_info (individual);
+
+  g_object_unref (individual);
 }
 
 static void