1Glib::Signal(3)       User Contributed Perl Documentation      Glib::Signal(3)
2
3
4

NAME

6       Glib::Signal -  Object customization and general purpose notification
7

METHODS

9       integer = Glib->install_exception_handler ($func, $data=undef)
10
11           * $func (subroutine)
12           * $data (scalar)
13
14           Install a subroutine to be executed when a signal emission traps an
15           exception (a croak or die).  $func should return boolean (true if
16           the handler should remain installed) and expect to receive a single
17           scalar.  This scalar will be a private copy of $@ which the handler
18           can mangle to its heart's content.
19
20           Returns an identifier that may be used with "remove_exception_han‐
21           dler".
22
23           See "gperl_install_exception_handler()" in Glib::xsapi.
24
25       Glib->remove_exception_handler ($tag)
26
27           * $tag (integer)
28
29           Remove the exception handler identified by $tag, as returned by
30           "install_exception_handler".  If $tag cannot be found, this does
31           nothing.
32
33           WARNING:  Do not call this function from within an exception han‐
34           dler.  If you want to remove your handler during its execution just
35           have it return false.
36
37           See "gperl_remove_exception_handler()" in Glib::xsapi.
38

SEE ALSO

40       Glib
41
43       Copyright (C) 2003-2007 by the gtk2-perl team.
44
45       This software is licensed under the LGPL.  See Glib for a full notice.
46
47
48
49perl v5.8.8                       2007-02-26                   Glib::Signal(3)
Impressum