From 00b878b87455a47494ef640c0b5fd2cab4e6b66c Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 20 Aug 2010 15:19:59 +0100 Subject: 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-persona-view.c b/libempathy-gtk/empathy-persona-view.c index ee679ec74..04777b1b6 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 (); -- cgit v1.2.3