[gimp] app: use integer not unsigned integer for GimpGeglConfig::num-processors
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use integer not unsigned integer for GimpGeglConfig::num-processors
- Date: Wed, 28 Jun 2017 19:16:45 +0000 (UTC)
commit 8bf20a6c21fd745f55c61272aba742399f9ba9e5
Author: Michael Natterer <mitch gimp org>
Date: Wed Jun 28 21:15:45 2017 +0200
app: use integer not unsigned integer for GimpGeglConfig::num-processors
app/config/gimpgeglconfig.c | 16 ++++++++--------
app/config/gimpgeglconfig.h | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/app/config/gimpgeglconfig.c b/app/config/gimpgeglconfig.c
index e17d2cc..1a77e50 100644
--- a/app/config/gimpgeglconfig.c
+++ b/app/config/gimpgeglconfig.c
@@ -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);
diff --git a/app/config/gimpgeglconfig.h b/app/config/gimpgeglconfig.h
index f9f3b39..c1f7912 100644
--- a/app/config/gimpgeglconfig.h
+++ b/app/config/gimpgeglconfig.h
@@ -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;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]