[gegl/soc-2012-editor] decrease default babl tolerance to 0.0001
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-editor] decrease default babl tolerance to 0.0001
- Date: Tue, 5 Jun 2012 00:08:31 +0000 (UTC)
commit 03e95447dd5a74734ff4353d1ec3849efe919ada
Author: Ãyvind KolÃs <pippin gimp org>
Date: Thu Apr 26 21:36:51 2012 +0200
decrease default babl tolerance to 0.0001
This excludes a conversion that was screwing with 16bit mode.
gegl/gegl-config.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
index f7e9636..d39231d 100644
--- a/gegl/gegl-config.c
+++ b/gegl/gegl-config.c
@@ -123,6 +123,10 @@ gegl_config_set_property (GObject *gobject,
return;
case PROP_BABL_TOLERANCE:
{
+ /* XXX: this only works the first time, and since it is a
+ * construct property the values overriden from gimp does not take
+ * effect
+ */
static gboolean first = TRUE;
static gboolean overridden = FALSE;
@@ -141,7 +145,7 @@ gegl_config_set_property (GObject *gobject,
g_setenv ("BABL_TOLERANCE", buf, 0);
/* babl picks up the babl error through the environment, babl
* caches valid conversions though so this needs to be set
- * before any processing is done
+ * before _any_ processing is done
*/
}
}
@@ -219,7 +223,7 @@ gegl_config_class_init (GeglConfigClass *klass)
g_object_class_install_property (gobject_class, PROP_BABL_TOLERANCE,
g_param_spec_double ("babl-tolerance", "babl error", "the error tolerance babl operates with",
- 0.0, 0.2, 0.002,
+ 0.0, 0.2, 0.0001,
G_PARAM_READWRITE|
G_PARAM_CONSTRUCT));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]