diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-09-05 11:54:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-09-05 11:54:09 +0000 |
commit | 2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643 (patch) | |
tree | 8a174842da8d22d54e12f435278f6981c6f28b86 /perl-install | |
parent | a3f21e6d00f52788681f3a44ee355338a99a5c63 (diff) | |
download | drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.gz drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.bz2 drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.xz drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.zip |
no_comment
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive_gtk.pm | 5 | ||||
-rw-r--r-- | perl-install/printer.pm | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index 719313549..4e525e5c7 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -29,6 +29,7 @@ sub ask_from_listW { my ($o, $title, $messages, $l, $def) = @_; if (@$l < 5 && sum(map { length $_ } @$l) < 70) { + my $defW; my $w = my_gtk->new($title, %$o); my $f = sub { $w->{retval} = $_[1]; Gtk->main_quit }; gtkadd($w->{window}, @@ -37,12 +38,12 @@ sub ask_from_listW { map { my $b = new Gtk::Button($_); $b->signal_connect(clicked => [ $f, $_ ]); - $_ eq $def and $def = $b; + $_ eq $def and $defW = $b; $b; } @$l), ), ); - $def->grab_focus if $def; + $defW->grab_focus if $defW; $w->main; } else { my $w = my_gtk->new($title); diff --git a/perl-install/printer.pm b/perl-install/printer.pm index 24b8af811..b02fe3a10 100644 --- a/perl-install/printer.pm +++ b/perl-install/printer.pm @@ -363,8 +363,8 @@ sub create_config_file($$%) { while (<IN>) { if (/@@@(.*)@@@/) { - defined($toreplace{$1}) or die "I can't replace $chaine"; - s/@@@(.*)@@@/$toreplace{$1}/g; + my $r = $toreplace{$1} or die "I can't replace $1"; + s/@@@(.*)@@@/$r/g; } print OUT; } |