[glib/g-property: 18/26] 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/26] Add a missing default value to one property
- Date: Wed, 17 Aug 2011 14:00:15 +0000 (UTC)
commit 28a03fe47fc04319a270ecf7cb0e0bfaa491c03d
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]