From 8fc94184a89d11dab0bb4396b397643337727ab4 Mon Sep 17 00:00:00 2001 From: Ell Date: Fri, 19 Apr 2019 11:33:04 -0400 Subject: [PATCH] app: fix spin-button width in the Curves tool In the Curves tool, explicitly set the point-coordinate spin- buttons' width-chars, so that their size remains fixed when their range changes. --- app/tools/gimpcurvestool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c index 4c97582866..d199502b23 100644 --- a/app/tools/gimpcurvestool.c +++ b/app/tools/gimpcurvestool.c @@ -228,6 +228,9 @@ gimp_curves_tool_initialize (GimpTool *tool, gtk_spin_button_set_digits (GTK_SPIN_BUTTON (c_tool->point_input), 0); gtk_spin_button_set_digits (GTK_SPIN_BUTTON (c_tool->point_output), 0); + + gtk_entry_set_width_chars (GTK_ENTRY (c_tool->point_input), 3); + gtk_entry_set_width_chars (GTK_ENTRY (c_tool->point_output), 3); } else { @@ -235,6 +238,9 @@ gimp_curves_tool_initialize (GimpTool *tool, gtk_spin_button_set_digits (GTK_SPIN_BUTTON (c_tool->point_input), 2); gtk_spin_button_set_digits (GTK_SPIN_BUTTON (c_tool->point_output), 2); + + gtk_entry_set_width_chars (GTK_ENTRY (c_tool->point_input), 6); + gtk_entry_set_width_chars (GTK_ENTRY (c_tool->point_output), 6); } gimp_curve_view_set_range_x (GIMP_CURVE_VIEW (c_tool->graph),