diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-25 19:32:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-14 15:21:48 +0800 |
commit | 6aef9eda7957ac651f21b6a54efac85ad71e7d3c (patch) | |
tree | 34f423bd4da7b6128ac0a2fb749807b88b16cbb8 /libempathy-gtk/empathy-roster-view.c | |
parent | 2434369020f74d732a8b8fac431ad35081b57bf5 (diff) | |
download | gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar.gz gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar.bz2 gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar.lz gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar.xz gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.tar.zst gsoc2013-empathy-6aef9eda7957ac651f21b6a54efac85ad71e7d3c.zip |
rename EmpathyRosterItem to EmpathyRosterContact
Diffstat (limited to 'libempathy-gtk/empathy-roster-view.c')
-rw-r--r-- | libempathy-gtk/empathy-roster-view.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index 793832ad6..f557c3454 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -3,7 +3,7 @@ #include "empathy-roster-view.h" -#include <libempathy-gtk/empathy-roster-item.h> +#include <libempathy-gtk/empathy-roster-contact.h> G_DEFINE_TYPE (EmpathyRosterView, empathy_roster_view, EGG_TYPE_LIST_BOX) @@ -28,7 +28,7 @@ struct _EmpathyRosterViewPriv { EmpathyIndividualManager *manager; - /* FolksIndividual (borrowed) -> EmpathyRosterItem (borrowed) */ + /* FolksIndividual (borrowed) -> EmpathyRosterContact (borrowed) */ GHashTable *items; gboolean show_offline; @@ -104,7 +104,7 @@ individual_added (EmpathyRosterView *self, if (item != NULL) return; - item = empathy_roster_item_new (individual); + item = empathy_roster_contact_new (individual); /* Need to refilter if online is changed */ g_signal_connect (item, "notify::online", @@ -161,15 +161,15 @@ members_changed_cb (EmpathyIndividualManager *manager, } static gint -roster_view_sort (EmpathyRosterItem *a, - EmpathyRosterItem *b, +roster_view_sort (EmpathyRosterContact *a, + EmpathyRosterContact *b, EmpathyRosterView *self) { FolksIndividual *ind_a, *ind_b; const gchar *alias_a, *alias_b; - ind_a = empathy_roster_item_get_individual (a); - ind_b = empathy_roster_item_get_individual (b); + ind_a = empathy_roster_contact_get_individual (a); + ind_b = empathy_roster_contact_get_individual (b); alias_a = folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (ind_a)); alias_b = folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (ind_b)); @@ -202,12 +202,12 @@ filter_list (GtkWidget *child, gpointer user_data) { EmpathyRosterView *self = user_data; - EmpathyRosterItem *item = EMPATHY_ROSTER_ITEM (child); + EmpathyRosterContact *item = EMPATHY_ROSTER_CONTACT (child); if (self->priv->show_offline) return TRUE; - return empathy_roster_item_is_online (item); + return empathy_roster_contact_is_online (item); } static void |