gtk::quit_add
int gtk::quit_add(int
level
, string
callback
, [mixed
data
]);
Registers the function callback to be called when
main loop level level exits. If
data is given, it will be passed to
callback when called. Adding a function using
gtk::quit_add() is similar to connecting a method to the
destroy signal for a gtk loop.
gtk::quit_add() returns an integer identifier which can be
passed to gtk::quit_remove() in order to prevent the
function from being called.
See also: gtk::quit_remove()