[glib/wip/gproperty: 18/28] Add a missing default value to one property



commit 3c403fc5e9db08c64007ac23789160b4e8bce513
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 6 22:46:17 2011 -0400

    Add a missing default value to one property
    
    This was causing a warning when running the performance test.

 tests/gobject/performance.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/performance.c b/tests/gobject/performance.c
index 65bd8d9..4140e36 100644
--- a/tests/gobject/performance.c
+++ b/tests/gobject/performance.c
@@ -639,6 +639,7 @@ property_object_class_init (PropertyObjectClass *class)
                           G_STRUCT_OFFSET (PropertyObjectPrivate, baz),
                           NULL, NULL);
   g_property_set_range ((GProperty *) property_props[PROP_PROPERTY_BAZ], 0.0f, G_MAXFLOAT);
+  g_property_set_default ((GProperty *) property_props[PROP_PROPERTY_BAZ], 0.0f);
 
   g_object_class_install_properties (object_class, PROP_PROPERTY_LAST, property_props);
 }



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