[glib/g-property: 24/25] performance: Fix g_property_set_default() calls



commit b13cdf45a8af8f1eced64a88d8fd0a91194fe8b7
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]