[empathy] Display Personas' accounts in the linking dialogue



commit 00b878b87455a47494ef640c0b5fd2cab4e6b66c
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Fri Aug 20 15:19:59 2010 +0100

    Display Personas' accounts in the linking dialogue
    
    Display the account name instead of the Persona's presence message on the
    right-hand side of the linking dialogue. Closes: bgo#626715

 libempathy-gtk/empathy-persona-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-persona-view.c b/libempathy-gtk/empathy-persona-view.c
index ee679ec..04777b1 100644
--- a/libempathy-gtk/empathy-persona-view.c
+++ b/libempathy-gtk/empathy-persona-view.c
@@ -356,6 +356,8 @@ constructed (GObject *object)
   gtk_tree_view_column_set_cell_data_func (col, cell,
       (GtkTreeCellDataFunc) text_cell_data_func, self, NULL);
 
+  /* We (ab)use the name and status properties here to display display ID and
+   * account name, respectively. Harmless. */
   gtk_tree_view_column_add_attribute (col, cell,
       "name", EMPATHY_PERSONA_STORE_COL_DISPLAY_ID);
   gtk_tree_view_column_add_attribute (col, cell,
@@ -363,7 +365,7 @@ constructed (GObject *object)
   gtk_tree_view_column_add_attribute (col, cell,
       "presence-type", EMPATHY_PERSONA_STORE_COL_PRESENCE_TYPE);
   gtk_tree_view_column_add_attribute (col, cell,
-      "status", EMPATHY_PERSONA_STORE_COL_STATUS);
+      "status", EMPATHY_PERSONA_STORE_COL_ACCOUNT_NAME);
 
   /* Audio Call Icon */
   cell = empathy_cell_renderer_activatable_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]