Re: [GObject, long] Gtype for enum + runtime init or by init function.

2005-06-23 Thread Uzytkownik
Dnia 22-06-2005, śro o godzinie 18:25 -0400, Tristan Van Berkom napisał(a): Uzytkownik wrote: Hi, You should start off by reading: http://www.le-hacker.org/papers/gobject/ 1. In g_param_spec_enum I must have GType of this enum. a) Why this function need it? Its needed to

[GObject, long] Gtype for enum + runtime init or by init function.

2005-06-22 Thread Uzytkownik
1. In g_param_spec_enum I must have GType of this enum. a) Why this function need it? b) How create for enum GType? 2. I should register GType in package_name_get_type or package_class_init: a) GType package_name_get_type() { static GType type = 0; if(type == 0) {

Re: [GObject, long] Gtype for enum + runtime init or by init function.

2005-06-22 Thread Tristan Van Berkom
Uzytkownik wrote: Hi, You should start off by reading: http://www.le-hacker.org/papers/gobject/ 1. In g_param_spec_enum I must have GType of this enum. a) Why this function need it? Its needed to register metadata about the enum type to the type system, furthermore the object will