summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakfloppy
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-14 19:22:17 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-14 19:22:17 +0000
commitdba29e5d7d8a55063756e34dd6aeb00596faa62a (patch)
tree2de44b596afafbf6d84144a7cf4838149273087a /perl-install/standalone/drakfloppy
parentbd71077466edeaab67b19302f9a0b7a5ef4559db (diff)
downloaddrakx-dba29e5d7d8a55063756e34dd6aeb00596faa62a.tar
drakx-dba29e5d7d8a55063756e34dd6aeb00596faa62a.tar.gz
drakx-dba29e5d7d8a55063756e34dd6aeb00596faa62a.tar.bz2
drakx-dba29e5d7d8a55063756e34dd6aeb00596faa62a.tar.xz
drakx-dba29e5d7d8a55063756e34dd6aeb00596faa62a.zip
use new stock dialogs
Diffstat (limited to 'perl-install/standalone/drakfloppy')
-rwxr-xr-xperl-install/standalone/drakfloppy10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/standalone/drakfloppy b/perl-install/standalone/drakfloppy
index eb41da794..51d3bb94e 100755
--- a/perl-install/standalone/drakfloppy
+++ b/perl-install/standalone/drakfloppy
@@ -29,7 +29,7 @@ use lib qw(/usr/lib/libDrakX);
use standalone; #- warning, standalone must be loaded very first, for 'explanations'
use common;
-use ugtk2 qw(:helpers :create :wrappers);
+use ugtk2 qw(:create :dialogs :helpers :wrappers);
use detect_devices;
#- languages that can't be displayed with gtk1, so we unset translations
@@ -298,22 +298,22 @@ sub build_it() {
$co .= join(" --mkinitrdargs --with=", map { $_->[0] } @modules);
$co .= " " . $kernel_combo->entry->get_text;
$co .= " 2>&1 |";
- create_dialog(N("Warning"), N("Be sure a media is present for the device %s", $device_combo->entry->get_text), { cancel => 1 }) or return;
+ warn_dialog(N("Warning"), N("Be sure a media is present for the device %s", $device_combo->entry->get_text)) or return;
# we test if the media is present
test:
my $a = "dd count=1 if=/dev/null of=" . $device_combo->entry->get_text . " 2>&1";
my $b = `$a`;
if ($b =~ /dd/) {
- create_dialog(N("Error"), N("There is no medium or it is write-protected for device %s.\nPlease insert one.", $device_combo->entry->get_text), { cancel => 1 }) ? goto test : return 0;
+ err_dialog(N("Error"), N("There is no medium or it is write-protected for device %s.\nPlease insert one.", $device_combo->entry->get_text), { cancel => 1 }) ? goto test : return 0;
}
local *STATUS;
- open STATUS, $co or do { create_dialog(N("Error"), N("Unable to fork: %s", $!)); return };
+ open STATUS, $co or do { err_dialog(N("Error"), N("Unable to fork: %s", $!)); return };
local $_;
while (<STATUS>) {
gtktext_append($output, [ [ $_ ] ]);
}
- close STATUS or create_dialog(N("Error"), N("Unable to properly close mkbootdisk: \n %s \n %s", $!, $?));
+ close STATUS or err_dialog(N("Error"), N("Unable to properly close mkbootdisk: \n %s \n %s", $!, $?));
return (0);
}