Commit 33726d86 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added a toggle to control whether pressure affects opacity of the Airbrush

2005-01-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppaintoptions-gui.c (pressure_options_gui): added a
	toggle to control whether pressure affects opacity of the Airbrush
	tool (bug #164237).
parent 8f64b165
2005-01-16 Sven Neumann <sven@gimp.org>
* app/tools/gimppaintoptions-gui.c (pressure_options_gui): added a
toggle to control whether pressure affects opacity of the Airbrush
tool (bug #164237).
2005-01-16 Sven Neumann <sven@gimp.org>
* app/config/gimpdisplayconfig.[ch]
......
......@@ -227,11 +227,10 @@ pressure_options_gui (GimpPressureOptions *pressure,
}
/* the opacity toggle */
if (tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_PAINTBRUSH_TOOL ||
tool_type == GIMP_TYPE_PENCIL_TOOL)
if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) ||
tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL)
{
button = gimp_prop_check_button_new (config, "pressure-opacity",
_("Opacity"));
......@@ -265,13 +264,13 @@ pressure_options_gui (GimpPressureOptions *pressure,
}
/* the size toggle */
if ((g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) ||
tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL)
&&
! g_type_is_a (tool_type, GIMP_TYPE_AIRBRUSH_TOOL))
if (
tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_PAINTBRUSH_TOOL ||
tool_type == GIMP_TYPE_PENCIL_TOOL)
{
button = gimp_prop_check_button_new (config, "pressure-size",
_("Size"));
......@@ -280,7 +279,7 @@ pressure_options_gui (GimpPressureOptions *pressure,
}
/* the inverse size toggle */
if (g_type_is_a (tool_type, GIMP_TYPE_AIRBRUSH_TOOL))
if (tool_type == GIMP_TYPE_AIRBRUSH_TOOL)
{
button = gimp_prop_check_button_new (config, "pressure-inverse-size",
_("Size"));
......
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