summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-08 11:35:22 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-08 11:35:22 +0000
commit3255a2638d8e75f86ebff313a485357f8e45e1c1 (patch)
tree1749f239e0bacd793a2ff0732582a399f8000506
parentba7914ed6904f4d4aefdbbf478bff86e7fdde439 (diff)
downloadcontrol-center-3255a2638d8e75f86ebff313a485357f8e45e1c1.tar
control-center-3255a2638d8e75f86ebff313a485357f8e45e1c1.tar.gz
control-center-3255a2638d8e75f86ebff313a485357f8e45e1c1.tar.bz2
control-center-3255a2638d8e75f86ebff313a485357f8e45e1c1.tar.xz
control-center-3255a2638d8e75f86ebff313a485357f8e45e1c1.zip
do not abuse global namespace (and enable to do stricter static
checking on these variables)
-rwxr-xr-xcontrol-center16
1 files changed, 8 insertions, 8 deletions
diff --git a/control-center b/control-center
index 74f5212f..2cafe75c 100755
--- a/control-center
+++ b/control-center
@@ -92,9 +92,9 @@ gtkflush();
#-------------------------------------------------------------
# Data structures
-$::isWiz = -e "/usr/sbin/drakwizard";
-$::isRpmDrake = -e "/usr/sbin/rpmdrake";
-$::isWebAdmin = -e "/usr/bin/mdkwebadmin";
+my $isWiz = -e "/usr/sbin/drakwizard";
+my $isRpmDrake = -e "/usr/sbin/rpmdrake";
+my $isWebAdmin = -e "/usr/bin/mdkwebadmin";
# { key => [ log_exp, binary, gtkplug?, description ] }
# { key => [ log_exp, [ binary, win_nb ], gtkplug?, description ] }
@@ -231,7 +231,7 @@ my @tree =
# [ "RFBDrake", 'unknown-mdk' ],
]
],
- if_($::isRpmDrake,
+ if_($isRpmDrake,
[ N("Software Management"), 'software',
[
[ "Install Software", 'rpmdrake' ],
@@ -240,7 +240,7 @@ my @tree =
[ "Software Media Manager", 'source-manager' ],
]
]),
- if_($::isWiz,
+ if_($isWiz,
[ N("Server wizards"), 'wizard-mdk',
[
(map {
@@ -261,7 +261,7 @@ my @tree =
)
]
]),
- if_($::isWebAdmin,
+ if_($isWebAdmin,
[ N("Online Administration"), 'net-mdk',
[
(map {
@@ -327,7 +327,7 @@ my @menu_items = (
},
undef, '<CheckItem>'
],
- if_(0 && $::isWiz,
+ if_(0 && $isWiz,
[ join('', @{$options{wiz_expert}}), undef,
sub { $option_values{expert_wizard} = $check_boxes{wiz_expert}->get_active },
undef, '<CheckItem>',
@@ -488,7 +488,7 @@ update_profiles();
%check_boxes = map {
$_ => $factory->get_widget("<main>" . get_path(@{$options{$_}}))
-} ("show_log", if_(0 && $::isWiz, "wiz_expert"));
+} ("show_log", if_(0 && $isWiz, "wiz_expert"));
gtkadd($window_global,