From 93c3d83dd0eea43d22a8f222ad60b834cbc73c3b Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Fri, 11 Apr 2025 02:58:42 +0000 Subject: [PATCH] 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. --- app/tools/gimppaintoptions-gui.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c index 89de80a1ee..02f3f40c37 100644 --- a/app/tools/gimppaintoptions-gui.c +++ b/app/tools/gimppaintoptions-gui.c @@ -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);