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.
This commit is contained in:

committed by
Michael Natterer

parent
c4dfccd8db
commit
d3476d38f0
@ -1,3 +1,10 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user