[empathy] individual-view: use tp_g_signal_connect_object() to connect the destroy sig
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-view: use tp_g_signal_connect_object() to connect the destroy sig
- Date: Mon, 16 Jan 2012 10:46:24 +0000 (UTC)
commit c3c1f1ff6c2425e7a1657b9b45789fcf5e0c163b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Jan 16 11:43:40 2012 +0100
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
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 1a837cf..0c0e62a 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]