[glib/wip/gproperty: 1108/1118] Add a missing default value to one property



commit 8168fd1f9c0c3ac3cf9b5b7baff495e0ffea66af
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 b9f6a88..d170a0b 100644
--- a/tests/gobject/performance.c
+++ b/tests/gobject/performance.c
@@ -670,6 +670,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]