diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-08-04 15:29:46 +0200 |
---|---|---|
committer | Laurent Contzen <lcontzen@gmail.com> | 2012-08-06 11:02:19 +0200 |
commit | af7910a9af2984973be248b769d74f09e84822d4 (patch) | |
tree | cdabbe1f29bc2641e1344da5f13fb3cac7cab0f4 /libempathy-gtk/empathy-roster-model.h | |
parent | b3c361fdca7f6a0bb2a63e676cd0a5d488261127 (diff) | |
download | empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.gz |
Moved contact_in_top and contact_is_favourite from view to model
empathy-roster-model: new function _contact_in_top
empathy-roster-model-manager: implemented _contact_in_top, new function contact_is_favourite
empathy-roster-view: removed contact_in_top and contact_is_favourite functions, now calling model's _contact_in_top instead
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.h')
-rw-r--r-- | libempathy-gtk/empathy-roster-model.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.h b/libempathy-gtk/empathy-roster-model.h index d4737b785..c624ca427 100644 --- a/libempathy-gtk/empathy-roster-model.h +++ b/libempathy-gtk/empathy-roster-model.h @@ -24,6 +24,8 @@ #include <folks/folks.h> +#include <libempathy-gtk/empathy-roster-contact.h> + G_BEGIN_DECLS typedef struct _EmpathyRosterModel EmpathyRosterModel; @@ -39,6 +41,8 @@ struct _EmpathyRosterModelInterface GList * (*get_groups_for_individual) (EmpathyRosterModel *self, FolksIndividual *individual); GList * (*get_top_individuals) (EmpathyRosterModel *self); + gboolean (*contact_in_top) (EmpathyRosterModel *self, + EmpathyRosterContact *contact); }; GType empathy_roster_model_get_type (void); @@ -86,6 +90,9 @@ GList * empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self GList * empathy_roster_model_get_top_individuals (EmpathyRosterModel *self); +gboolean empathy_roster_model_contact_in_top (EmpathyRosterModel *self, + EmpathyRosterContact *contact); + G_END_DECLS #endif /* #ifndef __EMPATHY_ROSTER_MODEL_H__*/ |