[gimp] libgimpbase: same fix as previous commit to other static types.



commit 8f8727765337f59f1738f6a0c1b4d08a77ff04ec
Author: Jehan <jehan girinstud io>
Date:   Tue Dec 31 20:04:31 2019 +0100

    libgimpbase: same fix as previous commit to other static types.
    
    This member of the GTypeInfo structure is the size of the object
    instance (not of the parent instance). Let's fix it for all static type
    registrations in this file, which had the same bug as commit
    0eb6ff41cfc243c8e6bb79a08b8e84393f1fb6bd.
    Happy new year everyone!

 libgimpbase/gimpparamspecs.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgimpbase/gimpparamspecs.c b/libgimpbase/gimpparamspecs.c
index a9bdcc65b1..575762d47a 100644
--- a/libgimpbase/gimpparamspecs.c
+++ b/libgimpbase/gimpparamspecs.c
@@ -275,7 +275,7 @@ gimp_param_uint8_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_uint8_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecUInt8Array),
         0,
         (GInstanceInitFunc) gimp_param_uint8_array_init
       };
@@ -403,7 +403,7 @@ gimp_param_int16_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_int16_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecInt16Array),
         0,
         (GInstanceInitFunc) gimp_param_int16_array_init
       };
@@ -533,7 +533,7 @@ gimp_param_int32_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_int32_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecInt32Array),
         0,
         (GInstanceInitFunc) gimp_param_int32_array_init
       };
@@ -663,7 +663,7 @@ gimp_param_float_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_float_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecFloatArray),
         0,
         (GInstanceInitFunc) gimp_param_float_array_init
       };
@@ -884,7 +884,7 @@ gimp_param_string_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_string_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecStringArray),
         0,
         (GInstanceInitFunc) gimp_param_string_array_init
       };
@@ -1104,7 +1104,7 @@ gimp_param_rgb_array_get_type (void)
         NULL, NULL,
         (GClassInitFunc) gimp_param_rgb_array_class_init,
         NULL, NULL,
-        sizeof (GimpParamSpecArray),
+        sizeof (GimpParamSpecRGBArray),
         0,
         (GInstanceInitFunc) gimp_param_rgb_array_init
       };


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