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

update the button states if the layer which changed alpha was the active

2003-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	(gimp_layer_tree_view_alpha_changed): update the button states if
	the layer which changed alpha was the active one.
	Fixes bug #120864.
parent c4dfccd8
2003-08-27 Michael Natterer <mitch@gimp.org>
* app/widgets/gimplayertreeview.c
(gimp_layer_tree_view_alpha_changed): update the button states if
the layer which changed alpha was the active one.
Fixes bug #120864.
2003-08-27 Michael Natterer <mitch@gimp.org>
Enabled type-preserving DND of all kinds of items between
......@@ -1093,5 +1093,16 @@ gimp_layer_tree_view_alpha_changed (GimpLayer *layer,
iter = g_hash_table_lookup (view->hash_table, layer);
if (iter)
gimp_layer_tree_view_alpha_update (layer_view, iter, layer);
{
GimpItemTreeView *item_view;
item_view = GIMP_ITEM_TREE_VIEW (view);
gimp_layer_tree_view_alpha_update (layer_view, iter, layer);
/* update button states */
if (gimp_image_get_active_layer (item_view->gimage) == layer)
gimp_container_view_select_item (GIMP_CONTAINER_VIEW (view),
GIMP_VIEWABLE (layer));
}
}
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