-#if HAVE_FAVOURITE_CONTACTS
-static void
-contact_list_view_favourite_cell_data_func (
- GtkTreeViewColumn *tree_column,
- GtkCellRenderer *cell,
- GtkTreeModel *model,
- GtkTreeIter *iter,
- EmpathyContactListView *view)
-{
- gboolean is_group;
- gboolean is_active;
- gboolean is_separator;
- gboolean is_favourite;
- const gchar *icon_name = NULL;
-
- 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_IS_SEPARATOR, &is_separator,
- EMPATHY_CONTACT_LIST_STORE_COL_IS_FAVOURITE, &is_favourite,
- -1);
-
- if (!is_separator && !is_group)
- icon_name = (is_favourite? EMPATHY_IMAGE_FAVOURITE :
- EMPATHY_IMAGE_UNFAVOURITE);
-
- g_object_set (cell,
- "visible", (icon_name != NULL),
- "icon-name", icon_name,
- NULL);
-
- contact_list_view_cell_set_background (view, cell, is_group, is_active);
-}
-#endif /* HAVE_FAVOURITE_CONTACTS */
-