[gimp] app: some cosmetic cleanup in the item's node handling code
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: some cosmetic cleanup in the item's node handling code
- Date: Sun, 19 Dec 2010 19:39:53 +0000 (UTC)
commit e82e40033a9d90956aff5159331af51fed3ad436
Author: Michael Natterer <mitch gimp org>
Date: Sun Dec 19 20:39:18 2010 +0100
app: some cosmetic cleanup in the item's node handling code
app/core/gimpdrawable.c | 13 +++++--------
app/core/gimpitem.c | 7 ++-----
2 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index 74eb1f3..d179ae2 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -360,20 +360,17 @@ static void
gimp_drawable_visibility_changed (GimpItem *item)
{
GimpDrawable *drawable = GIMP_DRAWABLE (item);
- GeglNode *item_node;
+ GeglNode *node;
/* don't use gimp_item_get_node() because that would create
* the node.
*/
- item_node = gimp_item_peek_node (item);
+ node = gimp_item_peek_node (item);
- if (item_node)
+ if (node)
{
- GeglNode *input;
- GeglNode *output;
-
- input = gegl_node_get_input_proxy (item_node, "input");
- output = gegl_node_get_output_proxy (item_node, "output");
+ GeglNode *input = gegl_node_get_input_proxy (node, "input");
+ GeglNode *output = gegl_node_get_output_proxy (node, "output");
if (gimp_item_get_visible (item) &&
! (GIMP_IS_LAYER (item) &&
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index c665919..35c6c49 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -376,11 +376,8 @@ gimp_item_real_visibility_changed (GimpItem *item)
}
else
{
- GeglNode *input;
- GeglNode *output;
-
- input = gegl_node_get_input_proxy (item->node, "input");
- output = gegl_node_get_output_proxy (item->node, "output");
+ GeglNode *input = gegl_node_get_input_proxy (item->node, "input");
+ GeglNode *output = gegl_node_get_output_proxy (item->node, "output");
gegl_node_connect_to (input, "output",
output, "input");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]