Re: "onClose" for multiple Gtk2::Notify objects
- From: muppet <scott asofyet org>
- To: Marius Feraru <altblue gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: "onClose" for multiple Gtk2::Notify objects
- Date: Sun, 28 Jan 2007 20:53:12 -0500
On Jan 28, 2007, at 3:59 PM, Marius Feraru wrote:
# testing 101: use "signal_connect" or "signal_add_emission_hook"?
# - "signal_connect" sounds reasonable, but only first notification
gets it
# - "signal_add_emission_hook" triggers "closed" signals way too early
An emission hook is a global hook function to be called anytime the
signal is emitted on any instance. This is rarely what you want.
Emission hooks are used for implementing developer tools and special-
purpose monitors and debugging. You should not need them in 99% of
cases.
Indeed, as you pointed out in your reply to yourself, the problem was
actually in the underlying library. ;-)
--
If the monkey could type one keystroke every nanosecond, the expected
waiting time until the monkey types out Hamlet is so long that the
estimated age of the universe is insignificant by comparison ... this
is not a practical method for writing plays.
-- Gian-Carlo Rota
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]