[gimp] app: the range of GimpInkOption's and GimpBlobEditor's angle is [-PI..PI]



commit 4110840382a58247b0a69dc5d2f1acf48bcf4e6f
Author: Michael Natterer <mitch gimp org>
Date:   Mon Mar 21 10:37:56 2016 +0100

    app: the range of GimpInkOption's and GimpBlobEditor's angle is [-PI..PI]
    
    not [-90..90]. This will warn on startup for saved values which are
    now out-of-range, but only until the tool options got saved again.

 app/paint/gimpinkoptions.c   |    2 +-
 app/widgets/gimpblobeditor.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimpinkoptions.c b/app/paint/gimpinkoptions.c
index 7564372..72313d8 100644
--- a/app/paint/gimpinkoptions.c
+++ b/app/paint/gimpinkoptions.c
@@ -118,7 +118,7 @@ gimp_ink_options_class_init (GimpInkOptionsClass *klass)
                            "blob-angle",
                            _("Angle"),
                            _("Ink Blob Angle"),
-                           -90.0, 90.0, 0.0,
+                           -G_PI, G_PI, 0.0,
                            GIMP_PARAM_STATIC_STRINGS);
 }
 
diff --git a/app/widgets/gimpblobeditor.c b/app/widgets/gimpblobeditor.c
index 637ee7d..fd2896d 100644
--- a/app/widgets/gimpblobeditor.c
+++ b/app/widgets/gimpblobeditor.c
@@ -99,7 +99,7 @@ gimp_blob_editor_class_init (GimpBlobEditorClass *klass)
   g_object_class_install_property (object_class, PROP_ANGLE,
                                    g_param_spec_double ("blob-angle",
                                                         NULL, NULL,
-                                                        -90.0, 90.0, 0.0,
+                                                        -G_PI, G_PI, 0.0,
                                                         GIMP_PARAM_READWRITE |
                                                         G_PARAM_CONSTRUCT));
 }


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