Creating object based on GObject
- From: "Tomasz Jankowski" <tomcioj gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Creating object based on GObject
- Date: Mon, 13 Aug 2007 13:07:16 +0200
Hello!
I want to do such thing: Object, during create process, should be added to
objects' table (GHashTable). In this table I use one of objects' properties
as key (each object have other value of this property). This property is set
only during 'g_object_new' execution and it can't be changed later by user.
The problem is that object should be added to that list during
'g_object_new' call too and I don't know how can I do it. I tried to do it
in 'instance_init', but it was bad idea, because properties are still set
with default values, they are set with values passed to 'g_object_new' after
'instance_init'.
Is there any way to do it during 'g_object_new' run?
--
Cya!
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]