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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to