[gnome-chat] conversations-list: Set the TpContact as data on each row
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chat] conversations-list: Set the TpContact as data on each row
- Date: Tue, 10 Sep 2013 17:02:54 +0000 (UTC)
commit 81a072db5999d22fb097446d9a165a7a09475e5a
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Sep 10 18:06:13 2013 +0200
conversations-list: Set the TpContact as data on each row
We need it to fetch the logs and display them.
src/chat-conversations-list.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chat-conversations-list.c b/src/chat-conversations-list.c
index e097265..cec1475 100644
--- a/src/chat-conversations-list.c
+++ b/src/chat-conversations-list.c
@@ -106,6 +106,8 @@ chat_conversations_list_add_row (ChatConversationsList *self, TpContact *contact
gtk_container_add (GTK_CONTAINER (row), grid);
gtk_container_add (GTK_CONTAINER (self), row);
+ g_object_set_data_full (G_OBJECT (row), "chat-conversations-list-contact", g_object_ref (contact),
g_object_unref);
+
alias = tp_contact_get_alias (contact);
message = tpl_text_event_get_message (TPL_TEXT_EVENT (event));
markup = g_markup_printf_escaped ("<b>%s</b>\n%s", alias, message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]