app: GIMP_MAX_NUM_THREADS should follow max value of GeglConfig's...

... "threads" property.
Actually there is no need of having a public GEGL_MAX_THREADS as written
in the previous commit. We can just retrieve the max for a GObject
property.
This commit is contained in:
Jehan 2017-07-18 16:41:32 +02:00
parent 32ffabcba4
commit 894d85f64a
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@
#include "gimp-intl.h"
#define GIMP_MAX_NUM_THREADS 64
#define GIMP_MAX_NUM_THREADS G_PARAM_SPEC_INT (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config()), \
"threads"))->maximum
#define GIMP_MAX_MEM_PROCESS (MIN (G_MAXSIZE, GIMP_MAX_MEMSIZE))
enum