[glib/g-property: 24/27] performance: Fix g_property_set_default() calls
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/g-property: 24/27] performance: Fix g_property_set_default() calls
- Date: Fri, 19 Aug 2011 14:33:56 +0000 (UTC)
commit f159686112acb13712ce98f2d9356229b5d34412
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Jul 8 16:37:40 2011 +0100
performance: Fix g_property_set_default() calls
The object class argument was removed.
tests/gobject/performance.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/gobject/performance.c b/tests/gobject/performance.c
index 08bfc4e..1fe3b86 100644
--- a/tests/gobject/performance.c
+++ b/tests/gobject/performance.c
@@ -642,13 +642,13 @@ property_object_class_init (PropertyObjectClass *class)
G_STRUCT_OFFSET (PropertyObjectPrivate, foo),
NULL, NULL);
g_property_set_range ((GProperty *) property_props[PROP_PROPERTY_FOO], -100, 100);
- g_property_set_default ((GProperty *) property_props[PROP_PROPERTY_FOO], object_class, 50);
+ g_property_set_default ((GProperty *) property_props[PROP_PROPERTY_FOO], 50);
property_props[PROP_PROPERTY_BAR] =
g_string_property_new ("bar", G_PROPERTY_READWRITE,
G_STRUCT_OFFSET (PropertyObjectPrivate, bar),
NULL, NULL);
- g_property_set_default ((GProperty *) property_props[PROP_PROPERTY_BAR], object_class, "Hello");
+ g_property_set_default ((GProperty *) property_props[PROP_PROPERTY_BAR], "Hello");
property_props[PROP_PROPERTY_BAZ] =
g_float_property_new ("baz", G_PROPERTY_READWRITE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]