aboutsummaryrefslogtreecommitdiffstats
path: root/tests/interactive
diff options
context:
space:
mode:
Diffstat (limited to 'tests/interactive')
-rw-r--r--tests/interactive/test-empathy-roster-view.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/interactive/test-empathy-roster-view.c b/tests/interactive/test-empathy-roster-view.c
index 5700c1518..fd9457d53 100644
--- a/tests/interactive/test-empathy-roster-view.c
+++ b/tests/interactive/test-empathy-roster-view.c
@@ -13,6 +13,17 @@ static GOptionEntry entries[] =
{ NULL }
};
+static void
+individual_activated_cb (EmpathyRosterView *self,
+ FolksIndividual *individual,
+ gpointer user_data)
+{
+ g_assert (FOLKS_IS_INDIVIDUAL (individual));
+
+ g_print ("'%s' activated\n",
+ folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual)));
+}
+
int
main (int argc,
char **argv)
@@ -44,6 +55,9 @@ main (int argc,
view = empathy_roster_view_new (mgr);
+ g_signal_connect (view, "individual-activated",
+ G_CALLBACK (individual_activated_cb), NULL);
+
empathy_roster_view_show_offline (EMPATHY_ROSTER_VIEW (view), show_offline);
empathy_roster_view_show_groups (EMPATHY_ROSTER_VIEW (view), show_groups);