Re: introspection?



<skip pobox com> writes:
> Is there any sort of introspection facility built into gtk?  For example,
> I'd like to be able to ask a widget what signals it knows about and what its
> property names are.  This isn't perhaps such a useful thing when programming
> in C, but I've gotten kind of spoiled working with Python where such
> facilities are common, and I'm using gtk strictly from Python at this point.
> It's much easier to ask a widget for the signals it responds to than to poke
> through the reference manual page-by-page or scan the source code for a
> widget and its ancestors in the class hierarchy.
> 

Look at gtkobject.h, gtksignal.h, there are various features. These
are designed for implementing language bindings though, so normally
aren't exported by language bindings.

Havoc




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