when applying or deleting the layer mask, we have to call

2000-12-03  Michael Natterer  <mitch@gimp.org>

	* app/layers_dialog.c: when applying or deleting the layer mask,
	we have to call layers_dialog_set_menu_sensitivity() ourselves
	whenever calling layer_widget_layer_flush() instead of
	gdisplays_flush().
This commit is contained in:
Michael Natterer 2000-12-03 19:18:01 +00:00 committed by Michael Natterer
parent 6bb4458abb
commit ab6f72912c
3 changed files with 24 additions and 5 deletions

View File

@ -1,9 +1,16 @@
2000-12-03 Michael Natterer <mitch@gimp.org>
* app/layers_dialog.c: when applying or deleting the layer mask,
we have to call layers_dialog_set_menu_sensitivity() ourselves
whenever calling layer_widget_layer_flush() instead of
gdisplays_flush().
2000-12-03 Michael Natterer <mitch@gimp.org>
* plug-ins/gflare/gflare.c
* libgimp/gimpunitmenu.c
* libgimp/gimpwidgets.c: set separators of option menus insensitive.
(see Sven's fix below below).
(see Sven's fix below).
* app/layers_dialog.c: set "Merge Down" insensitive for
the bottom layer.

View File

@ -1732,12 +1732,15 @@ layers_dialog_apply_layer_mask_callback (GtkWidget *widget,
layer, APPLY);
if (flush)
gdisplays_flush ();
{
gdisplays_flush ();
}
else
{
LayerWidget *layer_widget = layer_widget_get_ID (layer);
layer_widget_layer_flush (layer_widget->list_item, NULL);
layers_dialog_set_menu_sensitivity ();
}
}
}
@ -1762,12 +1765,15 @@ layers_dialog_delete_layer_mask_callback (GtkWidget *widget,
layer, DISCARD);
if (flush)
gdisplays_flush ();
{
gdisplays_flush ();
}
else
{
LayerWidget *layer_widget = layer_widget_get_ID (layer);
layer_widget_layer_flush (layer_widget->list_item, NULL);
layers_dialog_set_menu_sensitivity ();
}
}
}

View File

@ -1732,12 +1732,15 @@ layers_dialog_apply_layer_mask_callback (GtkWidget *widget,
layer, APPLY);
if (flush)
gdisplays_flush ();
{
gdisplays_flush ();
}
else
{
LayerWidget *layer_widget = layer_widget_get_ID (layer);
layer_widget_layer_flush (layer_widget->list_item, NULL);
layers_dialog_set_menu_sensitivity ();
}
}
}
@ -1762,12 +1765,15 @@ layers_dialog_delete_layer_mask_callback (GtkWidget *widget,
layer, DISCARD);
if (flush)
gdisplays_flush ();
{
gdisplays_flush ();
}
else
{
LayerWidget *layer_widget = layer_widget_get_ID (layer);
layer_widget_layer_flush (layer_widget->list_item, NULL);
layers_dialog_set_menu_sensitivity ();
}
}
}