From c977e894c549b8bb146e23dd5ce88509a30c96cd Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 18 Jun 2012 13:15:17 +0200 Subject: roster-view: use a signal instead of a cb to handle individual tooltips https://bugzilla.gnome.org/show_bug.cgi?id=678294 --- tests/interactive/test-empathy-roster-view.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/interactive') diff --git a/tests/interactive/test-empathy-roster-view.c b/tests/interactive/test-empathy-roster-view.c index becb3325e..d0f739d71 100644 --- a/tests/interactive/test-empathy-roster-view.c +++ b/tests/interactive/test-empathy-roster-view.c @@ -113,13 +113,14 @@ main (int argc, G_CALLBACK (popup_individual_menu_cb), NULL); g_signal_connect (view, "notify::empty", G_CALLBACK (empty_cb), NULL); + g_signal_connect (view, "individual-tooltip", + G_CALLBACK (individual_tooltip_cb), NULL); + + gtk_widget_set_has_tooltip (view, TRUE); 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); -- cgit v1.2.3