app: use integer not unsigned integer for GimpGeglConfig::num-processors

This commit is contained in:
Michael Natterer 2017-06-28 21:15:45 +02:00
parent f1a93f87b2
commit 8bf20a6c21
2 changed files with 9 additions and 9 deletions

View File

@ -144,12 +144,12 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
#endif
num_processors = 1;
GIMP_CONFIG_PROP_UINT (object_class, PROP_NUM_PROCESSORS,
"num-processors",
"Number of threads to use",
NUM_PROCESSORS_BLURB,
1, GIMP_MAX_NUM_THREADS, num_processors,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_NUM_PROCESSORS,
"num-processors",
"Number of threads to use",
NUM_PROCESSORS_BLURB,
1, GIMP_MAX_NUM_THREADS, num_processors,
GIMP_PARAM_STATIC_STRINGS);
memory_size = gimp_get_physical_memory_size ();
@ -224,7 +224,7 @@ gimp_gegl_config_set_property (GObject *object,
gegl_config->swap_path = g_value_dup_string (value);
break;
case PROP_NUM_PROCESSORS:
gegl_config->num_processors = g_value_get_uint (value);
gegl_config->num_processors = g_value_get_int (value);
break;
case PROP_TILE_CACHE_SIZE:
gegl_config->tile_cache_size = g_value_get_uint64 (value);
@ -260,7 +260,7 @@ gimp_gegl_config_get_property (GObject *object,
g_value_set_string (value, gegl_config->swap_path);
break;
case PROP_NUM_PROCESSORS:
g_value_set_uint (value, gegl_config->num_processors);
g_value_set_int (value, gegl_config->num_processors);
break;
case PROP_TILE_CACHE_SIZE:
g_value_set_uint64 (value, gegl_config->tile_cache_size);

View File

@ -37,7 +37,7 @@ struct _GimpGeglConfig
gchar *temp_path;
gchar *swap_path;
guint num_processors;
gint num_processors;
guint64 tile_cache_size;
gboolean use_opencl;
};