[gimp] app: fix spin-button width in the Curves tool



commit 8fc94184a89d11dab0bb4396b397643337727ab4
Author: Ell <ell_se yahoo com>
Date:   Fri Apr 19 11:33:04 2019 -0400

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]