10
# this will set @ISA for Foo, and register the type.
11
# note that if you aren't going to add properties, signals, or
12
# virtual overrides, there's no reason to do this rather than
13
# just re-blessing the object, so this is a rather contrived
18
sub Foo::INIT_INSTANCE {
22
sub Foo::FINALIZE_INSTANCE {
26
Glib::Type->register (Glib::Object::, Foo::);
29
$ok1 = 2; my $bar = new Foo;
31
$ok1 = 4; $bar = new Foo;
42
Copyright (C) 2003 by the gtk2-perl team (see the file AUTHORS for the
45
This library is free software; you can redistribute it and/or modify it under
46
the terms of the GNU Library General Public License as published by the Free
47
Software Foundation; either version 2.1 of the License, or (at your option) any
50
This library is distributed in the hope that it will be useful, but WITHOUT ANY
51
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
52
PARTICULAR PURPOSE. See the GNU Library General Public License for more
55
You should have received a copy of the GNU Library General Public License along
56
with this library; if not, write to the Free Software Foundation, Inc., 59
57
Temple Place - Suite 330, Boston, MA 02111-1307 USA.