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/g_auto_install | 4 +--- perl-install/interactive.pm | 10 +--------- perl-install/interactive_gtk.pm | 11 +++++++++++ 3 files changed, 13 insertions(+), 12 deletions(-) (limited to 'perl-install') diff --git a/perl-install/g_auto_install b/perl-install/g_auto_install index 41a5d3303..cb5ed3cc7 100755 --- a/perl-install/g_auto_install +++ b/perl-install/g_auto_install @@ -1,7 +1,5 @@ #!../perl -@ARGV == 0 or die "usage: $0\n"; - my $dir = `pwd`; chomp $dir; $dir .= "/../../.."; @@ -10,4 +8,4 @@ $ENV{PERL5LIB} = join ":", map { "$dir/$_" } @INC; $ENV{LD_LIBRARY_PATH} = "$dir/usr/lib"; $ENV{PATH} = join ":", map { "$dir/$_" } split ":", "/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin"; -exec "../perl", "./install2", "--g_auto_install" or die; +exec "../perl", "./install2", "--g_auto_install", @ARGV or die; diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 2a18767e4..a6a8a1341 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -154,15 +154,7 @@ sub wait_message($$$) { $b; } -sub kill { - my ($o) = @_; - $o->{before_killing} ||= 0; - while (@interactive::objects > $o->{before_killing}) { - my $w = pop @interactive::objects; - $w->destroy; - } - $o->{before_killing} = @interactive::objects; -} +sub kill {} #-###################################################################################### #- Wonderful perl :( 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