[glib/g-property: 18/22] Add a missing default value to one property
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib/g-property: 18/22] Add a missing default value to one property
- Date: Fri,  8 Jul 2011 14:44:10 +0000 (UTC)
commit c90fc1be6075b034b65d9cbfd5b3ab460843db24
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]