[gegl/wip/rishi/insta: 4/8] GeglNode: Disconnect "invalidated" handler when the sink pad is gone
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/rishi/insta: 4/8] GeglNode: Disconnect "invalidated" handler when the sink pad is gone
- Date: Tue, 9 Feb 2016 11:36:49 +0000 (UTC)
commit e5305d9e8308f5c51ee04324c25f15735b6617ac
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Dec 30 11:33:38 2015 +0100
GeglNode: Disconnect "invalidated" handler when the sink pad is gone
https://bugzilla.gnome.org/show_bug.cgi?id=759995
gegl/graph/gegl-node.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 28fc738..92eb0fd 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -753,8 +753,11 @@ gegl_node_connect_from (GeglNode *sink,
real_sink->priv->source_connections = g_slist_prepend (real_sink->priv->source_connections,
connection);
real_source->priv->sink_connections = g_slist_prepend (real_source->priv->sink_connections,
connection);
- g_signal_connect (G_OBJECT (real_source), "invalidated",
- G_CALLBACK (gegl_node_source_invalidated), sink_pad);
+ g_signal_connect_object (G_OBJECT (real_source),
+ "invalidated",
+ G_CALLBACK (gegl_node_source_invalidated),
+ sink_pad,
+ 0);
gegl_node_source_invalidated (real_source, &real_source->have_rect, sink_pad);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]