[gimp] app: restore the original brush size upper limit of 10000



commit 6a3fe9f9c520a06b596434ab14b95074798e0b4c
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 18 21:10:47 2011 +0200

    app: restore the original brush size upper limit of 10000
    
    but restrict the tool options sclae to 500.

 app/paint/gimppaintoptions.c     |    2 +-
 app/tools/gimppaintoptions-gui.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 0663c56..ca2fd85 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -143,7 +143,7 @@ gimp_paint_options_class_init (GimpPaintOptionsClass *klass)
 
   GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_SIZE,
                                    "brush-size", _("Brush Size"),
-                                   1.0, 1000.0, DEFAULT_BRUSH_SIZE,
+                                   1.0, 10000.0, DEFAULT_BRUSH_SIZE,
                                    GIMP_PARAM_STATIC_STRINGS);
 
   GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_ASPECT_RATIO,
diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c
index 88f2b76..32c45e9 100644
--- a/app/tools/gimppaintoptions-gui.c
+++ b/app/tools/gimppaintoptions-gui.c
@@ -31,6 +31,7 @@
 #include "paint/gimppaintoptions.h"
 
 #include "widgets/gimppropwidgets.h"
+#include "widgets/gimpspinscale.h"
 #include "widgets/gimpviewablebox.h"
 #include "widgets/gimpwidgets-constructors.h"
 #include "widgets/gimpwidgets-utils.h"
@@ -133,6 +134,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
       scale = gimp_prop_spin_scale_new (config, "brush-size",
                                         _("Size"),
                                         0.01, 1.0, 2);
+      gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale), 1.0, 500.0);
       gtk_box_pack_start (GTK_BOX (hbox), scale, TRUE, TRUE, 0);
       gtk_widget_show (scale);
 



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