gegl r3041 - trunk/gegl/graph
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r3041 - trunk/gegl/graph
- Date: Sat, 11 Apr 2009 14:50:26 +0000 (UTC)
Author: martinn
Date: Sat Apr 11 14:50:26 2009
New Revision: 3041
URL: http://svn.gnome.org/viewvc/gegl?rev=3041&view=rev
Log:
Input pads can only depend on one pad, simplify code
Input pads can only depend on one pad, simplify code in
gegl_pad_get_depends_on().
Modified:
trunk/gegl/graph/gegl-pad.c
Modified: trunk/gegl/graph/gegl-pad.c
==============================================================================
--- trunk/gegl/graph/gegl-pad.c (original)
+++ trunk/gegl/graph/gegl-pad.c Sat Apr 11 14:50:26 2009
@@ -178,13 +178,11 @@
if (gegl_pad_is_input (self))
{
- GSList *iter;
- for (iter = self->connections; iter; iter = g_slist_next (iter))
- {
- GeglConnection *connection = iter->data;
- depends_on = g_slist_prepend (depends_on,
- gegl_connection_get_source_pad (connection));
- }
+ GeglPad *source_pad = gegl_pad_get_connected_to (self);
+
+ if (source_pad)
+ depends_on = g_slist_prepend (depends_on,
+ source_pad);
}
else if (gegl_pad_is_output (self))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]