diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-18 19:15:17 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-18 19:16:09 +0800 |
commit | c977e894c549b8bb146e23dd5ce88509a30c96cd (patch) | |
tree | 491ed779b83a86ea841190d430bdde052ff87ad9 /src | |
parent | aac60300edfcb929acca9e4fc59cdb5803eecc30 (diff) | |
download | gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar.gz gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar.bz2 gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar.lz gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar.xz gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.tar.zst gsoc2013-empathy-c977e894c549b8bb146e23dd5ce88509a30c96cd.zip |
roster-view: use a signal instead of a cb to handle individual tooltips
https://bugzilla.gnome.org/show_bug.cgi?id=678294
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-roster-window.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c index a1363fcee..abff479ad 100644 --- a/src/empathy-roster-window.c +++ b/src/empathy-roster-window.c @@ -1925,10 +1925,8 @@ individual_tooltip_cb (EmpathyRosterView *view, FolksIndividual *individual, gboolean keyboard_mode, GtkTooltip *tooltip, - gpointer user_data) + EmpathyRosterWindow *self) { - EmpathyRosterWindow *self = user_data; - if (self->priv->tooltip_widget == NULL) { self->priv->tooltip_widget = empathy_individual_widget_new (individual, @@ -2089,9 +2087,10 @@ empathy_roster_window_init (EmpathyRosterWindow *self) G_CALLBACK (popup_individual_menu_cb), self); g_signal_connect (self->priv->view, "notify::empty", G_CALLBACK (view_empty_cb), self); + g_signal_connect (self->priv->view, "individual-tooltip", + G_CALLBACK (individual_tooltip_cb), self); - empathy_roster_view_set_individual_tooltip_cb (self->priv->view, - individual_tooltip_cb, self); + gtk_widget_set_has_tooltip (GTK_WIDGET (self->priv->view), TRUE); /* Set up search bar */ self->priv->search_bar = empathy_live_search_new ( |