diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-16 18:43:40 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-01-16 18:44:16 +0800 |
commit | c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b (patch) | |
tree | 461c5ac48a46650b4f537df19e49b16586f0e9e2 /libempathy-gtk | |
parent | 22da56b2392a9470f50c1da6b54f8e5aebf7ac4a (diff) | |
download | gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar.gz gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar.bz2 gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar.lz gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar.xz gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.tar.zst gsoc2013-empathy-c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b.zip |
individual-view: use tp_g_signal_connect_object() to connect the destroy sig
This ensure that we won't call the callback when disposing the widget.
https://bugzilla.gnome.org/show_bug.cgi?id=667676
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 1a837cf83..0c0e62a85 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -219,8 +219,10 @@ individual_view_query_tooltip_cb (EmpathyIndividualView *view, EMPATHY_INDIVIDUAL_WIDGET_SHOW_CLIENT_TYPES); gtk_container_set_border_width (GTK_CONTAINER (priv->tooltip_widget), 8); g_object_ref (priv->tooltip_widget); - g_signal_connect (priv->tooltip_widget, "destroy", - G_CALLBACK (individual_view_tooltip_destroy_cb), view); + + tp_g_signal_connect_object (priv->tooltip_widget, "destroy", + G_CALLBACK (individual_view_tooltip_destroy_cb), view, 0); + gtk_widget_show (priv->tooltip_widget); } else |