X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=libempathy-gtk%2Fempathy-contact-list-view.c;h=05823435a04727f9b9d42f501b5477156e38a733;hp=5aab817d759158c3e0cde8e47bcada022918a639;hb=940d0e9778828657a6ffbcadd35a8a84d706ac70;hpb=fff76809babe6a154cd548e9bc3aa43199e9eda9 diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 5aab817d..05823435 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -1030,22 +1030,12 @@ contact_list_view_text_cell_data_func (GtkTreeViewColumn *tree_column, { gboolean is_group; gboolean is_active; - gboolean show_status; - gchar *name; gtk_tree_model_get (model, iter, EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP, &is_group, EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE, &is_active, - EMPATHY_CONTACT_LIST_STORE_COL_STATUS_VISIBLE, &show_status, - EMPATHY_CONTACT_LIST_STORE_COL_NAME, &name, -1); - g_object_set (cell, - "show-status", show_status, - "text", name, - NULL); - g_free (name); - contact_list_view_cell_set_background (view, cell, is_group, is_active); } @@ -1226,10 +1216,16 @@ contact_list_view_setup (EmpathyContactListView *view) gtk_tree_view_column_add_attribute (col, cell, "name", EMPATHY_CONTACT_LIST_STORE_COL_NAME); + gtk_tree_view_column_add_attribute (col, cell, + "text", EMPATHY_CONTACT_LIST_STORE_COL_NAME); + gtk_tree_view_column_add_attribute (col, cell, + "presence-type", EMPATHY_CONTACT_LIST_STORE_COL_PRESENCE_TYPE); gtk_tree_view_column_add_attribute (col, cell, "status", EMPATHY_CONTACT_LIST_STORE_COL_STATUS); gtk_tree_view_column_add_attribute (col, cell, "is_group", EMPATHY_CONTACT_LIST_STORE_COL_IS_GROUP); + gtk_tree_view_column_add_attribute (col, cell, + "compact", EMPATHY_CONTACT_LIST_STORE_COL_COMPACT); /* Audio Call Icon */ cell = empathy_cell_renderer_activatable_new ();