[gegl] GeglNode: Clean up the computed handlers
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] GeglNode: Clean up the computed handlers
- Date: Sun, 14 Jun 2015 17:42:26 +0000 (UTC)
commit 1eb18bb79afbae0da7dbe09f1c3e9e4c396e0eba
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Jun 14 19:07:21 2015 +0200
GeglNode: Clean up the computed handlers
https://bugzilla.gnome.org/show_bug.cgi?id=750938
gegl/graph/gegl-node.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 3d9cfd2..53500b4 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -1836,15 +1836,6 @@ gegl_node_emit_computed (GeglNode *node,
g_signal_emit (node, gegl_node_signals[COMPUTED], 0, rect, NULL, NULL);
}
-static void
-gegl_node_computed_event (GeglCache *self,
- void *foo,
- void *user_data)
-{
- GeglNode *node = GEGL_NODE (user_data);
- gegl_node_emit_computed (node, foo);
-}
-
GeglCache *
gegl_node_get_cache (GeglNode *node)
{
@@ -1893,9 +1884,9 @@ gegl_node_get_cache (GeglNode *node)
gegl_node_get_bounding_box (node);
gegl_buffer_set_extent (GEGL_BUFFER (cache), &node->have_rect);
- g_signal_connect (G_OBJECT (cache), "computed",
- (GCallback) gegl_node_computed_event,
- node);
+ g_signal_connect_swapped (G_OBJECT (cache), "computed",
+ (GCallback) gegl_node_emit_computed,
+ node);
node->cache = cache;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]