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
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) {
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