Commit abe32307 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

don't show the floating selection layer in the image graph, it will be

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.


svn path=/trunk/; revision=27960
parent ef3fbab8
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.
2009-01-26 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
......
......@@ -339,7 +339,9 @@ gimp_drawable_visibility_changed (GimpItem *item)
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 @@ gimp_drawable_visibility_changed (GimpItem *item)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment