aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-model.c
diff options
context:
space:
mode:
authorLaurent Contzen <lcontzen@gmail.com>2012-08-04 19:33:14 +0800
committerLaurent Contzen <lcontzen@gmail.com>2012-08-06 17:02:18 +0800
commit765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9 (patch)
tree340dab146da0621b265e770824e59e3e332f6abc /libempathy-gtk/empathy-roster-model.c
parentf54a06dcc9682df323ff98bd8e776bf75da950b0 (diff)
downloadgsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar.gz
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar.bz2
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar.lz
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar.xz
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.tar.zst
gsoc2013-empathy-765db7cfd0a0aa7aea9f0f717a7762ad79e14ef9.zip
roster-model now catches notify::favourites-changed
empathy-roster-model: catches notify::favourites-changed and emits favourites-changed empathy-roster-model-manager: implemented this empathy-roster-view: now catches favourites-changed from the model
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.c')
-rw-r--r--libempathy-gtk/empathy-roster-model.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.c b/libempathy-gtk/empathy-roster-model.c
index 198c644c5..671f4b191 100644
--- a/libempathy-gtk/empathy-roster-model.c
+++ b/libempathy-gtk/empathy-roster-model.c
@@ -29,6 +29,7 @@ enum
SIG_INDIVIDUAL_REMOVED,
SIG_GROUPS_CHANGED,
SIG_TOP_INDIVIDUALS_CHANGED,
+ SIG_FAVOURITES_CHANGED,
LAST_SIGNAL
};
@@ -69,6 +70,15 @@ empathy_roster_model_default_init (EmpathyRosterModelInterface *iface)
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
+
+ signals[SIG_FAVOURITES_CHANGED] =
+ g_signal_new ("favourites-changed",
+ EMPATHY_TYPE_ROSTER_MODEL,
+ G_SIGNAL_RUN_LAST,
+ 0, NULL, NULL, NULL,
+ G_TYPE_NONE, 2,
+ FOLKS_TYPE_INDIVIDUAL,
+ G_TYPE_BOOLEAN);
}
/***** Restricted *****/
@@ -102,6 +112,15 @@ empathy_roster_model_fire_top_individuals_changed (EmpathyRosterModel *self)
g_signal_emit (self, signals[SIG_TOP_INDIVIDUALS_CHANGED], 0);
}
+void
+empathy_roster_model_fire_favourites_changed (EmpathyRosterModel *self,
+ FolksIndividual *individual,
+ gboolean favourite)
+{
+ g_signal_emit (self, signals[SIG_FAVOURITES_CHANGED], 0, individual, favourite);
+}
+
+
/***** Public *****/
/**