aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-07-11 16:47:24 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-07-11 17:34:56 +0800
commit3878f8cca1e145e30932823c4ea6d0de1ad4462c (patch)
treeee3aefbb861e8da83c3056b3b21704b57c8bc7b4 /libempathy-gtk
parent60e19a5cd6acce9af9b19d013eb396f12ea42abe (diff)
downloadgsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar.gz
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar.bz2
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar.lz
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar.xz
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.tar.zst
gsoc2013-empathy-3878f8cca1e145e30932823c4ea6d0de1ad4462c.zip
chat: use empathy_display_individual_info()
https://bugzilla.gnome.org/show_bug.cgi?id=679111
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d6e462725..6eb1443d7 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -48,7 +48,7 @@
#include "empathy-chat.h"
#include "empathy-spell.h"
-#include "empathy-contact-dialogs.h"
+#include "empathy-individual-information-dialog.h"
#include "empathy-individual-store-channel.h"
#include "empathy-individual-view.h"
#include "empathy-input-text-view.h"
@@ -959,7 +959,7 @@ whois_got_contact_cb (GObject *source,
{
EmpathyChat *chat = user_data;
EmpathyContact *contact;
- GtkWidget *window;
+ FolksIndividual *individual;
contact = empathy_client_factory_dup_contact_by_id_finish (
EMPATHY_CLIENT_FACTORY (source), result, NULL);
@@ -969,12 +969,11 @@ whois_got_contact_cb (GObject *source,
goto out;
}
- window = gtk_widget_get_toplevel (GTK_WIDGET (chat));
- g_return_if_fail (window != NULL);
- g_return_if_fail (gtk_widget_is_toplevel (window));
- empathy_contact_information_dialog_show (contact,
- GTK_WINDOW (window));
+ individual = empathy_ensure_individual_from_tp_contact (
+ empathy_contact_get_tp_contact (contact));
+ empathy_display_individual_info (individual);
+ g_object_unref (individual);
g_object_unref (contact);
out: