[empathy] chat: use empathy_display_individual_info()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] chat: use empathy_display_individual_info()
- Date: Wed, 11 Jul 2012 10:00:55 +0000 (UTC)
commit 3878f8cca1e145e30932823c4ea6d0de1ad4462c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jul 11 10:47:24 2012 +0200
chat: use empathy_display_individual_info()
https://bugzilla.gnome.org/show_bug.cgi?id=679111
libempathy-gtk/empathy-chat.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d6e4627..6eb1443 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]