gegl r2422 - in trunk: . gegl



Author: ok
Date: Thu Jun 12 21:46:53 2008
New Revision: 2422
URL: http://svn.gnome.org/viewvc/gegl?rev=2422&view=rev

Log:
s/BABL_ACCURACY/BABL_TOLERANCE/
* gegl/gegl-config.c: (get_property), (set_property),
(gegl_config_class_init):
* gegl/gegl-config.h:
* gegl/gegl-init.c: (gegl_post_parse_hook):


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-config.c
   trunk/gegl/gegl-config.h
   trunk/gegl/gegl-init.c

Modified: trunk/gegl/gegl-config.c
==============================================================================
--- trunk/gegl/gegl-config.c	(original)
+++ trunk/gegl/gegl-config.c	Thu Jun 12 21:46:53 2008
@@ -32,7 +32,7 @@
   PROP_CACHE_SIZE,
   PROP_CHUNK_SIZE,
   PROP_SWAP,
-  PROP_BABL_ACCURACY,
+  PROP_BABL_TOLERANCE,
   PROP_TILE_WIDTH,
   PROP_TILE_HEIGHT
 };
@@ -67,8 +67,8 @@
         g_value_set_double (value, config->quality);
         break;
 
-      case PROP_BABL_ACCURACY:
-        g_value_set_double (value, config->babl_error);
+      case PROP_BABL_TOLERANCE:
+        g_value_set_double (value, config->babl_tolerance);
         break;
 
       case PROP_SWAP:
@@ -106,12 +106,12 @@
       case PROP_QUALITY:
         config->quality = g_value_get_double (value);
         return;
-      case PROP_BABL_ACCURACY:
+      case PROP_BABL_TOLERANCE:
           {
             gchar buf[256];
-            config->babl_error = g_value_get_double (value);
-            g_sprintf (buf, "%f", config->babl_error);
-            g_setenv ("BABL_ACCURACY", buf, 0);
+            config->babl_tolerance = g_value_get_double (value);
+            g_sprintf (buf, "%f", config->babl_tolerance);
+            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
@@ -179,8 +179,8 @@
                                                      0.0, 1.0, 1.0,
                                                      G_PARAM_READWRITE));
 
-  g_object_class_install_property (gobject_class, PROP_BABL_ACCURACY,
-                                   g_param_spec_double ("babl-error", "babl error", "the error tolerance babl operates with",
+  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.0001,
                                                      G_PARAM_READWRITE));
 

Modified: trunk/gegl/gegl-config.h
==============================================================================
--- trunk/gegl/gegl-config.h	(original)
+++ trunk/gegl/gegl-config.h	Thu Jun 12 21:46:53 2008
@@ -42,7 +42,7 @@
   gint     cache_size;
   gint     chunk_size; /* The size of elements being processed at once */
   gdouble  quality;
-  gdouble  babl_error;
+  gdouble  babl_tolerance;
   gint     tile_width;
   gint     tile_height;
 };

Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c	(original)
+++ trunk/gegl/gegl-init.c	Thu Jun 12 21:46:53 2008
@@ -159,13 +159,13 @@
 static gchar   *cmd_gegl_chunk_size=NULL;
 static gchar   *cmd_gegl_quality=NULL;
 static gchar   *cmd_gegl_tile_size=NULL;
-static gchar   *cmd_babl_error=NULL;
+static gchar   *cmd_babl_tolerance =NULL;
 
 static const GOptionEntry cmd_entries[]=
 {
     {
-     "babl-error", 0, 0,
-     G_OPTION_ARG_STRING, &cmd_babl_error, 
+     "babl-tolerance", 0, 0,
+     G_OPTION_ARG_STRING, &cmd_babl_tolerance, 
      N_("babls error tolerance, a value beteen 0.2 and 0.000000001"), "<float>"
     },
     {
@@ -389,8 +389,8 @@
         config->tile_height = atoi(str+1);
     }
 
-  if (cmd_babl_error)
-    g_object_set (config, "babl-error", atof(cmd_babl_error), NULL);
+  if (cmd_babl_tolerance)
+    g_object_set (config, "babl-tolerance", atof(cmd_babl_tolerance), NULL);
 
 #ifdef GEGL_ENABLE_DEBUG
   {



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