The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# $Id$
print "1..3 child create lock,child unlock,lock conststency\n";

$dong = 0;
$w-> lock;
my $c = $w-> insert( Widget =>
	onPaint => sub { $dong = 1;}
);
$c-> update_view;
ok( !$dong);

$dong = 0;
$c-> repaint;
$w-> unlock;
$c-> update_view;
ok($dong);

$dong = 0;
$c-> lock;
$c-> repaint;
$c-> update_view;
ok( !$dong);
$c-> unlock;
$c-> destroy;
1;