diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-04 20:57:03 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-14 15:21:49 +0800 |
commit | 32e517b2bc225ad56de043e79278374994c099ad (patch) | |
tree | 31bfddde30c6f6436404dd2971b50ef8ae1d7537 /tests | |
parent | a96c2a5c0ac5133ab8b7a14fab0f2857cead162d (diff) | |
download | gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar.gz gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar.bz2 gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar.lz gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar.xz gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.tar.zst gsoc2013-empathy-32e517b2bc225ad56de043e79278374994c099ad.zip |
add API for individual tooltips
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/test-empathy-roster-view.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/interactive/test-empathy-roster-view.c b/tests/interactive/test-empathy-roster-view.c index c76f670c8..f10aaf2d7 100644 --- a/tests/interactive/test-empathy-roster-view.c +++ b/tests/interactive/test-empathy-roster-view.c @@ -52,6 +52,19 @@ popup_individual_menu_cb (EmpathyRosterView *self, gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, button, time); } +static gboolean +individual_tooltip_cb (EmpathyRosterView *view, + FolksIndividual *individual, + gboolean keyboard_mode, + GtkTooltip *tooltip, + gpointer user_data) +{ + gtk_tooltip_set_text (tooltip, + folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual))); + + return TRUE; +} + int main (int argc, char **argv) @@ -91,6 +104,9 @@ main (int argc, empathy_roster_view_show_offline (EMPATHY_ROSTER_VIEW (view), show_offline); empathy_roster_view_show_groups (EMPATHY_ROSTER_VIEW (view), show_groups); + empathy_roster_view_set_individual_tooltip_cb (EMPATHY_ROSTER_VIEW (view), + individual_tooltip_cb, NULL); + g_object_unref (mgr); search = empathy_live_search_new (view); |