aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-menu.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-02-24 18:17:15 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-25 01:09:23 +0800
commit67920cae23f4b8020559d7548fd1dff8de44e962 (patch)
treed9784819ef3db4a959030020e0c646902441bb39 /libempathy-gtk/empathy-contact-menu.c
parent677a6bf7fca3ce8e26cf02d36c2721fa03510a4d (diff)
downloadgsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar.gz
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar.bz2
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar.lz
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar.xz
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.tar.zst
gsoc2013-empathy-67920cae23f4b8020559d7548fd1dff8de44e962.zip
Port empathy to Telepathy logger 0.2.0
Diffstat (limited to 'libempathy-gtk/empathy-contact-menu.c')
-rw-r--r--libempathy-gtk/empathy-contact-menu.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index cff1bf4e5..3bf415746 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -317,6 +317,7 @@ GtkWidget *
empathy_contact_log_menu_item_new (EmpathyContact *contact)
{
TplLogManager *manager;
+ TplEntity *entity;
gboolean have_log;
GtkWidget *item;
GtkWidget *image;
@@ -324,11 +325,15 @@ empathy_contact_log_menu_item_new (EmpathyContact *contact)
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
manager = tpl_log_manager_dup_singleton ();
+ entity = tpl_entity_new_from_tp_contact (empathy_contact_get_tp_contact (contact),
+ TPL_ENTITY_CONTACT);
+
have_log = tpl_log_manager_exists (manager,
- empathy_contact_get_account (contact),
- empathy_contact_get_id (contact),
- FALSE);
+ empathy_contact_get_account (contact),
+ entity,
+ TPL_EVENT_MASK_TEXT);
+ g_object_unref (entity);
g_object_unref (manager);
item = gtk_image_menu_item_new_with_mnemonic (_("_Previous Conversations"));