[gimp] app: initialize generated properties with their default values



commit 9b500c03d17f12db3930c6d0cbf65a442051c4bb
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 30 23:21:12 2017 +0200

    app: initialize generated properties with their default values

 app/operations/gimp-operation-config.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/operations/gimp-operation-config.c b/app/operations/gimp-operation-config.c
index 61f475d..92f023a 100644
--- a/app/operations/gimp-operation-config.c
+++ b/app/operations/gimp-operation-config.c
@@ -93,6 +93,7 @@ gimp_operation_config_value_new (GParamSpec *pspec)
   GValue *value = g_slice_new0 (GValue);
 
   g_value_init (value, pspec->value_type);
+  g_param_value_set_default (pspec, value);
 
   return value;
 }


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