Re: g_object_class_install_property
- From: Tristan Van Berkom <tvb gnome org>
- To: Madhusudan E <madhusudan huawei com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_object_class_install_property
- Date: Wed, 23 Aug 2006 10:19:58 -0400
Madhusudan E wrote:
Hi,
The property wasn't defined on the object, But it started working when I
defined the first_property in g_object_new().
I have a query here,
Doesn't the gobject_class->set_property function be invoked without sending
the first_property parameter in g_object_new().
If not then somewhere it needs to documented.
I dont understand your question really,
- g_object_new() creates an object with the specified properties
(if any properties are specified - otherwise they are assumed to be
the defaults that you specified in the GParamSpec)
- You can later set these properties using g_object_set()
- If you cant set a property using g_object_set() later on - then you
probably didnt give it G_PARAM_WRITABLE permissions or you called it
G_PARAM_CONSTRUCT_ONLY.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]