tools: Hide Force slider for Pencil Tool

The Force option does not affect the Pencil Tool's painting.
While Force is already set to be insensitive, hiding the
option entirely makes it even clearer that it can not
be used with this tool.
This commit is contained in:
Alx Sa 2025-04-11 02:58:42 +00:00
parent 5273f26ef0
commit 93c3d83dd0

View file

@ -201,16 +201,18 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
hbox = gimp_paint_options_gui_scale_with_buttons
(config, "brush-force", NULL,
_("Reset force to default"),
0.1, 1.0, 1, 0.0, 100.0, 100.0, 1.0,
G_CALLBACK (gimp_paint_options_gui_reset_force), link_group);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
if (tool_type == GIMP_TYPE_PENCIL_TOOL)
gtk_widget_set_sensitive (hbox, FALSE);
if (tool_type != GIMP_TYPE_PENCIL_TOOL)
{
hbox = gimp_paint_options_gui_scale_with_buttons (config, "brush-force",
NULL,
_("Reset force to default"),
0.1, 1.0, 1, 0.0,
100.0, 100.0, 1.0,
G_CALLBACK (gimp_paint_options_gui_reset_force),
link_group);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_set_visible (hbox, TRUE);
}
g_object_unref (link_group);