Re: How to determine the type of a widget?



Hi,

"Marc K." <marc centrin net id> writes:

> What I want to achieve is to collect some IDs (or something similar)
> when I create the internal classes. At this point, I have not created
> any instances. So I think I cant use G_TYPE_FROM_INSTANCE.

Still, the answer is in GObject. Types can be referred to by name and
you can instantiate objects from type. Please have a look at the
GObject API reference, in particular the docs about the type system.
You may also want to read the excellent GObject tutorial written by
Mathieu Lacage.


Sven




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]