summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-02-24 10:37:55 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-02-24 10:37:55 +0000
commita12e1d02b526b23fdd9aafeb877424458b9eaa93 (patch)
tree1381e222c276845e8ca2be788138d98667f52742
parent9f6da34477b98fd2a272920450c7f8cddad06570 (diff)
downloadcontrol-center-a12e1d02b526b23fdd9aafeb877424458b9eaa93.tar
control-center-a12e1d02b526b23fdd9aafeb877424458b9eaa93.tar.gz
control-center-a12e1d02b526b23fdd9aafeb877424458b9eaa93.tar.bz2
control-center-a12e1d02b526b23fdd9aafeb877424458b9eaa93.tar.xz
control-center-a12e1d02b526b23fdd9aafeb877424458b9eaa93.zip
(compute_exec_string) rename to the more meaningfull name (run_tool)
-rwxr-xr-xcontrol-center6
1 files changed, 3 insertions, 3 deletions
diff --git a/control-center b/control-center
index 03939661..4c072c38 100755
--- a/control-center
+++ b/control-center
@@ -1318,7 +1318,7 @@ foreach (@tree) {
$tool_callbacks{$label} = sub {
# needed for --start-with parameter:
$event_box->realize;
- compute_exec_string($label, $event_box, $icon, $text, $programs{$label});
+ run_tool($label, $event_box, $icon, $text, $programs{$label});
};
$event_box = Gtk2::WebIcon->new($text, $icon,
{
@@ -1365,7 +1365,7 @@ my %icons = (
# manage tools not present in MCC (localedrake, drakauth, ...):
foreach my $label (difference2([ keys %programs ], [ keys %tool_callbacks ])) {
my $text = $programs{$label}{description};
- $tool_callbacks{$label} = sub { compute_exec_string($label, undef, $icons{$label} || 'wizard-mdk', $text, $programs{$label}) };
+ $tool_callbacks{$label} = sub { run_tool($label, undef, $icons{$label} || 'wizard-mdk', $text, $programs{$label}) };
$tool_feedback{$label} = sub {};
}
@@ -1555,7 +1555,7 @@ sub fork_ {
}
}
-sub compute_exec_string {
+sub run_tool {
my ($label, $box, $icon, $text, $tool) = @_;
my ($exec, $gtkplug) = @$tool{qw(binary embedded)};
$application_driven_menu = $tool->{application_driven_menu};