Re: gtk_signal_connect_object () problem



Russell Shaw <rjshaw iprimus com au> wrote:

Hi,
That was a nice example. I haven't found in the docs or any books any
example of creating your own classes using g_object. There's plenty of
api functions, but you still wonder about how they're designed
to be used.

Should method-functions be called as standalone functions, or should
they be called via pointers to those functions, where the pointers are
stored in the g_object of your class? How should constructors and
destructors be simulated? How do you pass parameters to constructors
and destructors of ancestor objects? How to do inheritance of ancestor
data and functions? Polymorphic functions?

I think it can help you:

http://www.gnome.org/~mathieu/gobject/
http://www.dunkelhain.de/docs/

Some examples of class creation and usage is definitely needed in
the gtk tutorials.

Yes, I agree with you.


Regards,

--fx



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