07-02-2020, 11:15 AM
(07-02-2020, 12:46 AM)devrtz Wrote: I myself have never really dived into php and perl. Python is cool though, but sometimes I get confused by all the magic that happens in the background.
In C I feel there is no magic involved and I like being in total control (also allowing you to make stupid mistakes of course ).
Anyway: In case you are interested, have a look at this MR.
Ah excellent, thank you for the addition; Super quick with an update to the repo as well!
Indeed there is full control and allowing all the mistakes.
I see the new function, and an variable for the object class being set.
Now it is not as clear to me how the function is attached to the events. For python I would have something like
Code:
window.connect("destroy", quit_app())
But I cannot tell what would be the equivalent / replacement of that line in C.
I deduce it to be
Code:
object_class->finalize = finalize;
and read it like if gtk object class is finalized run the finalize function.
Is this the case?