diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-08 19:12:35 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-14 15:21:50 +0800 |
commit | ab756d6ee9c60b803d8b7785cbc507b6a96580bf (patch) | |
tree | e57955a9f7f73d36448c1b8071d41196097178a4 /tests | |
parent | 4e7a495826259c861506acfe87a376b51d450643 (diff) | |
download | gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar.gz gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar.bz2 gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar.lz gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar.xz gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.tar.zst gsoc2013-empathy-ab756d6ee9c60b803d8b7785cbc507b6a96580bf.zip |
roster-view: add 'empty' property
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/test-empathy-roster-view.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/interactive/test-empathy-roster-view.c b/tests/interactive/test-empathy-roster-view.c index f10aaf2d7..becb3325e 100644 --- a/tests/interactive/test-empathy-roster-view.c +++ b/tests/interactive/test-empathy-roster-view.c @@ -65,6 +65,17 @@ individual_tooltip_cb (EmpathyRosterView *view, return TRUE; } +static void +empty_cb (EmpathyRosterView *view, + GParamSpec *spec, + gpointer user_data) +{ + if (empathy_roster_view_is_empty (view)) + g_print ("view is now empty\n"); + else + g_print ("view is no longer empty\n"); +} + int main (int argc, char **argv) @@ -100,6 +111,8 @@ main (int argc, G_CALLBACK (individual_activated_cb), NULL); g_signal_connect (view, "popup-individual-menu", G_CALLBACK (popup_individual_menu_cb), NULL); + g_signal_connect (view, "notify::empty", + G_CALLBACK (empty_cb), NULL); empathy_roster_view_show_offline (EMPATHY_ROSTER_VIEW (view), show_offline); empathy_roster_view_show_groups (EMPATHY_ROSTER_VIEW (view), show_groups); |