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.
This commit is contained in:
Ell 2019-04-19 11:33:04 -04:00
parent f6d76ff342
commit 8fc94184a8
1 changed files with 6 additions and 0 deletions

View File

@ -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),