Re: Destroy signal

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

 



Hi,

francex@xxxxxxxxxx wrote:
This last func, automatically generates a new 'destroy' signal, and so 'Close_Function'
is called two times...

Destroy can be called many times. It means "this object is going to be destroyed, please drop all references". You'll need to write your Close_Function() so that it can be called many times.


Alternatively, you can link to "finalize". This will be called only once, right at the end of the object's life. However, many things about the object will no longer be valid by this point (you won't be able to disconnect signals, for example), so finalize is only useful for stuff like freeing object strings.

Mathieu Lacage has a very good discussion of all this here:

http://www.le-hacker.org/papers/gobject/ch04s02.html

gtk's destroy is another name for gobject's dispose (more or less).

John

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux