diff options
-rw-r--r-- | perl-install/common.pm | 5 | ||||
-rw-r--r-- | perl-install/ugtk2.pm | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index f486660d4..7feadc532 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -165,18 +165,17 @@ sub screenshot_dir__and_move { } sub take_screenshot { - my ($in) = @_; my $dir = screenshot_dir__and_move() . '/DrakX-screenshots'; my $warn; if (!-e $dir) { - mkdir $dir or $in->ask_warn('', N("Can't make screenshots before partitioning")), return; + mkdir $dir or $::o->ask_warn('', N("Can't make screenshots before partitioning")), return; $warn = 1; } my $nb = 1; $nb++ while -e "$dir/$nb.png"; system("fb2png /dev/fb0 $dir/$nb.png 0"); - $in->ask_warn('', N("Screenshots will be available after install in %s", "/root/DrakX-screenshots")) if $warn; + $::o->ask_warn('', N("Screenshots will be available after install in %s", "/root/DrakX-screenshots")) if $warn; } sub join_lines { diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 4b6a1f36b..dbfdb1747 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -742,7 +742,7 @@ sub new { require install_gtk; install_gtk::create_big_help($::o); } elsif ($d eq 'screenshot') { - common::take_screenshot($o); + common::take_screenshot(); } elsif (chr($event->keyval) eq 'e' && member('mod1-mask', @{$event->state})) { #- alt-e log::l("Switching to " . ($::expert ? "beginner" : "expert")); $::expert = !$::expert; |