diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-08-04 19:19:44 +0800 |
---|---|---|
committer | Laurent Contzen <lcontzen@gmail.com> | 2012-08-06 17:02:18 +0800 |
commit | f54a06dcc9682df323ff98bd8e776bf75da950b0 (patch) | |
tree | c16f03b78f2f384cbd53584392df0179d13d14c2 /libempathy-gtk/empathy-roster-model.c | |
parent | 93da7465f929f0cb950adb76e7b645f5ff23f1ad (diff) | |
download | gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar.gz gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar.bz2 gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar.lz gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar.xz gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.tar.zst gsoc2013-empathy-f54a06dcc9682df323ff98bd8e776bf75da950b0.zip |
roster-model now catches notify::top-individuals
empathy-roster-model: catches notify::top-individuals and emits top-individuals-changed
empathy-roster-model-manager: implemented this
empathy-roster-view: now catches top-individuals-changed from the model
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.c')
-rw-r--r-- | libempathy-gtk/empathy-roster-model.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.c b/libempathy-gtk/empathy-roster-model.c index 37ca594fe..198c644c5 100644 --- a/libempathy-gtk/empathy-roster-model.c +++ b/libempathy-gtk/empathy-roster-model.c @@ -28,6 +28,7 @@ enum SIG_INDIVIDUAL_ADDED, SIG_INDIVIDUAL_REMOVED, SIG_GROUPS_CHANGED, + SIG_TOP_INDIVIDUALS_CHANGED, LAST_SIGNAL }; @@ -61,6 +62,13 @@ empathy_roster_model_default_init (EmpathyRosterModelInterface *iface) FOLKS_TYPE_INDIVIDUAL, G_TYPE_STRING, G_TYPE_BOOLEAN); + + signals[SIG_TOP_INDIVIDUALS_CHANGED] = + g_signal_new ("top-individuals-changed", + EMPATHY_TYPE_ROSTER_MODEL, + G_SIGNAL_RUN_LAST, + 0, NULL, NULL, NULL, + G_TYPE_NONE, 0); } /***** Restricted *****/ @@ -88,6 +96,12 @@ empathy_roster_model_fire_groups_changed (EmpathyRosterModel *self, g_signal_emit (self, signals[SIG_GROUPS_CHANGED], 0, individual, group, is_member); } +void +empathy_roster_model_fire_top_individuals_changed (EmpathyRosterModel *self) +{ + g_signal_emit (self, signals[SIG_TOP_INDIVIDUALS_CHANGED], 0); +} + /***** Public *****/ /** |