gimp r27960 - in trunk: . app/core



Author: mitch
Date: Mon Jan 26 21:20:03 2009
New Revision: 27960
URL: http://svn.gnome.org/viewvc/gimp?rev=27960&view=rev

Log:
2009-01-26  Michael Natterer  <mitch gimp org>

	* app/core/gimpdrawable.c (gimp_drawable_visibility_changed):
	don't show the floating selection layer in the image graph, it
	will be shown by the drawable it is attached to. This is a temp
	special case hack, but better fits here than into the newly
	created and clean GimpDrawableStack. The floating selection will
	see the end of its days as layer soon enough anyway.



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

Modified: trunk/app/core/gimpdrawable.c
==============================================================================
--- trunk/app/core/gimpdrawable.c	(original)
+++ trunk/app/core/gimpdrawable.c	Mon Jan 26 21:20:03 2009
@@ -339,7 +339,9 @@
       input  = gegl_node_get_input_proxy  (node, "input");
       output = gegl_node_get_output_proxy (node, "output");
 
-      if (gimp_item_get_visible (item))
+      if (gimp_item_get_visible (item) &&
+          ! (GIMP_IS_LAYER (item) &&
+             gimp_layer_is_floating_sel (GIMP_LAYER (item))))
         {
           gegl_node_connect_to (input,               "output",
                                 drawable->mode_node, "input");
@@ -349,7 +351,15 @@
       else
         {
           gegl_node_disconnect (drawable->mode_node, "input");
+
+          gegl_node_connect_to (input,  "output",
+                                output, "input");
         }
+
+#ifdef __GNUC__
+#warning FIXME: chain up again when above floating sel special case is gone
+#endif
+      return;
     }
 
   GIMP_ITEM_CLASS (parent_class)->visibility_changed (item);



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