summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/draksambashare
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-01-03 15:41:30 +0000
committerOlivier Blin <oblin@mandriva.org>2006-01-03 15:41:30 +0000
commitc2dda5abbae0ef821d2d8c93e2cf90972279f1f8 (patch)
treed309965399fedd8fdd6c09c6a74e8d21ba98a7ac /perl-install/standalone/draksambashare
parentbe98e2d67ccfcb58c1c114bf6054b8dcb00250b0 (diff)
downloaddrakx-backup-do-not-use-c2dda5abbae0ef821d2d8c93e2cf90972279f1f8.tar
drakx-backup-do-not-use-c2dda5abbae0ef821d2d8c93e2cf90972279f1f8.tar.gz
drakx-backup-do-not-use-c2dda5abbae0ef821d2d8c93e2cf90972279f1f8.tar.bz2
drakx-backup-do-not-use-c2dda5abbae0ef821d2d8c93e2cf90972279f1f8.tar.xz
drakx-backup-do-not-use-c2dda5abbae0ef821d2d8c93e2cf90972279f1f8.zip
don't have a useless empty hash in wizards objects, use the wizards hash
Diffstat (limited to 'perl-install/standalone/draksambashare')
-rwxr-xr-xperl-install/standalone/draksambashare18
1 files changed, 8 insertions, 10 deletions
diff --git a/perl-install/standalone/draksambashare b/perl-install/standalone/draksambashare
index 54ce32fc6..3ff11fba1 100755
--- a/perl-install/standalone/draksambashare
+++ b/perl-install/standalone/draksambashare
@@ -366,10 +366,9 @@ sub printers_section() {
}
sub add_entry() {
- use wizards;
+ require wizards;
my ($wiz_addshare_name, $wiz_addshare_comment, $wiz_addshare_path);
- my $w = wizards->new;
- my $wiz = {
+ my $wiz = wizards->new({
name => N("Add a Samba share"),
pages => {
welcome => {
@@ -426,21 +425,20 @@ sub add_entry() {
next => 0,
},
}
- };
- $w->process($wiz, $in);
+ });
+ $wiz->process($in);
$::isWizard = 0;
gtkset_mousecursor_normal();
}
sub add_printers_entry() {
- use wizards;
- my $w = wizards->new;
+ require wizards;
my %print = (
1 => N("pdf-gen - a PDF generator"),
2 => N("printers - all printers available"),
);
my $wiz_todo;
- my $wiz = {
+ my $wiz = wizards->new({
name => N("Add Special Printer share"),
pages => {
welcome => {
@@ -533,8 +531,8 @@ sub add_printers_entry() {
next => 0,
},
}
- };
- $w->process($wiz, $in);
+ });
+ $wiz->process($in);
$::isWizard = 0;
# gtkset_mousecursor_normal()
}