summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-28 20:33:58 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-28 20:33:58 +0000
commitc593cbf4d53a583d0240771cda635112c474a6bd (patch)
tree6146d4c2a0ca2fbf6391a7d0d4c8e90ab74d9374
parentbfbc34c49ca50239a907532ff29c733e980d8ab2 (diff)
downloaddrakx-backup-do-not-use-c593cbf4d53a583d0240771cda635112c474a6bd.tar
drakx-backup-do-not-use-c593cbf4d53a583d0240771cda635112c474a6bd.tar.gz
drakx-backup-do-not-use-c593cbf4d53a583d0240771cda635112c474a6bd.tar.bz2
drakx-backup-do-not-use-c593cbf4d53a583d0240771cda635112c474a6bd.tar.xz
drakx-backup-do-not-use-c593cbf4d53a583d0240771cda635112c474a6bd.zip
reindent for readability (shorter lines, no changes)
-rwxr-xr-xperl-install/standalone/draksec56
1 files changed, 32 insertions, 24 deletions
diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec
index 127f58f49..21700fb04 100755
--- a/perl-install/standalone/draksec
+++ b/perl-install/standalone/draksec
@@ -227,31 +227,39 @@ foreach ([ 'network', N("Network Options") ], [ 'system', N("System Options") ])
my ($domain, $label) = @$_;
register_help_page($label);
my %values;
- gtkappend_page($notebook, gtkshow(gtknew('VBox', children => [
- 1, create_scrolled_window(create_packtable($common_opts,
- map {
- my $i = $_;
-
- my $entry;
- my $opt = $inv_fields{$i} || $i;
- my $default = $msec->get_function_default($opt);
- if (member($default, @all_choices)) {
- $values{$i} = new_nonedit_combo(member($default, @yesno_choices) ? \@yesno_choices : if_(member($default, @alllocal_choices), \@alllocal_choices));
- $entry = $values{$i}->entry;
- } else {
- $values{$i} = gtknew('Entry');
- $entry = $values{$i};
- }
- $entry->set_text(to_i18n($msec->get_function_value($opt)));
- register_help_entry($i, $default, $opt);
- [ gtknew('Label_Left', line_wrap => 1, text => $i), resize($values{$i}) ];
- } sort map { $fields{$_} || $_ } $msec->list_functions($domain),
- ),
- [ 'never', 'automatic' ],
- ),
- ])
+ gtkappend_page(
+ $notebook,
+ gtkshow(gtknew('VBox', children => [
+ 1, create_scrolled_window(create_packtable($common_opts,
+ map {
+ my $i = $_;
+
+ my $entry;
+ my $opt = $inv_fields{$i} || $i;
+ my $default = $msec->get_function_default($opt);
+ if (member($default, @all_choices)) {
+ $values{$i} =
+ new_nonedit_combo(
+ member($default, @yesno_choices) ?
+ \@yesno_choices :
+ if_(member($default, @alllocal_choices),
+ \@alllocal_choices));
+ $entry = $values{$i}->entry;
+ } else {
+ $values{$i} = gtknew('Entry');
+ $entry = $values{$i};
+ }
+ $entry->set_text(to_i18n($msec->get_function_value($opt)));
+ register_help_entry($i, $default, $opt);
+ [ gtknew('Label_Left', line_wrap => 1, text => $i),
+ resize($values{$i}) ];
+ } sort map { $fields{$_} || $_ } $msec->list_functions($domain),
+ ),
+ [ 'never', 'automatic' ],
),
- gtknew('Label_Left', text => $label));
+ ])
+ ),
+ gtknew('Label_Left', text => $label));
$options_values{$domain} = \%values;
}