[glib/g-property: 18/25] 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/25] Add a missing default value to one property
- Date: Wed, 17 Aug 2011 13:34:21 +0000 (UTC)
commit 5720c15d0dbc9da7afbebfa9480f9ccdc7e58536
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]