From 5fd046ac65b74d9b9b5c18bbb9579329f4036c49 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 28 Sep 1999 12:56:26 +0000 Subject: no_comment --- perl-install/interactive_gtk.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'perl-install/interactive_gtk.pm') diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index f730cc2e6..95c668378 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -222,3 +222,14 @@ sub wait_message_endW { my ($o, $w) = @_; $w->destroy; } + +sub kill { + my ($o) = @_; + $o->{before_killing} ||= 0; + while (@interactive::objects > $o->{before_killing}) { + my $w = pop @interactive::objects; + $w->destroy; + } + @my_gtk::grabbed = (); + $o->{before_killing} = @interactive::objects; +} -- cgit v1.2.1