Re: gtk_signal_connect_object () problem



Leandro A. F. Pereira wrote:
Quoted by a bunch of orange chickens
For `Tzunga Ma <freekathmandu yahoo com>' On Thursday, 14 August 2003 (08:43):


but since i'm new to this gtk programming world, can you point me to a sample
code using struct or object_set_data ? i tried both method last night, but
failed.

Using a structure
-----------------
...
        Hope this helps :)

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?

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




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