gimp r27205 - in trunk: . app/core



Author: mitch
Date: Fri Oct 10 11:30:56 2008
New Revision: 27205
URL: http://svn.gnome.org/viewvc/gimp?rev=27205&view=rev

Log:
2008-10-10  Michael Natterer  <mitch gimp org>

	* app/core/gimplayer.c (gimp_layer_translate)
	(gimp_layer_get_node): the "shift" operation's x and y properties
	are doubles not ints.

	(gimp_layer_apply_mask): properly disconnect the mask node.

	(gimp_layer_set_opacity): the opacity node has a "value" property,
	not "opacity".



Modified:
   trunk/ChangeLog
   trunk/app/core/gimplayer.c

Modified: trunk/app/core/gimplayer.c
==============================================================================
--- trunk/app/core/gimplayer.c	(original)
+++ trunk/app/core/gimplayer.c	Fri Oct 10 11:30:56 2008
@@ -715,8 +715,8 @@
 
   if (layer->shift_node)
     gegl_node_set (layer->shift_node,
-                   "x", item->offset_x,
-                   "y", item->offset_y,
+                   "x", (gdouble) item->offset_x,
+                   "y", (gdouble) item->offset_y,
                    NULL);
 
   /*  update the new region  */
@@ -1662,6 +1662,9 @@
     {
       GeglNode *source;
 
+      gegl_node_disconnect (layer->mask_node, "input");
+      gegl_node_disconnect (layer->mask_node, "aux");
+
       gegl_node_remove_child (layer->node, layer->mask_node);
       layer->mask_node = NULL;
 
@@ -1932,8 +1935,8 @@
   gimp_item_offsets (GIMP_ITEM (layer), &off_x, &off_y);
   layer->shift_node = gegl_node_new_child (layer->node,
                                            "operation", "shift",
-                                           "x",         off_x,
-                                           "y",         off_y,
+                                           "x",         (gdouble) off_x,
+                                           "y",         (gdouble) off_y,
                                            NULL);
 
   if (layer->mask_node)
@@ -1992,7 +1995,7 @@
 
       if (layer->opacity_node)
         gegl_node_set (layer->opacity_node,
-                       "opacity", layer->opacity,
+                       "value", layer->opacity,
                        NULL);
 
       gimp_drawable_update (GIMP_DRAWABLE (layer),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]