summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-11-25 12:12:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-11-25 12:12:56 +0000
commitb8c0c2a2ab3607a77e11d7cc469d4bbcca623628 (patch)
tree5dbbb7e14aa76b24865444182bcf1ae129ae8912
parent7c19eab97988d8090a31757f8160d3aa08f40a30 (diff)
downloadcontrol-center-b8c0c2a2ab3607a77e11d7cc469d4bbcca623628.tar
control-center-b8c0c2a2ab3607a77e11d7cc469d4bbcca623628.tar.gz
control-center-b8c0c2a2ab3607a77e11d7cc469d4bbcca623628.tar.bz2
control-center-b8c0c2a2ab3607a77e11d7cc469d4bbcca623628.tar.xz
control-center-b8c0c2a2ab3607a77e11d7cc469d4bbcca623628.zip
use mandrake_release()
-rwxr-xr-xcontrol-center6
1 files changed, 2 insertions, 4 deletions
diff --git a/control-center b/control-center
index c8713819..f5028d34 100755
--- a/control-center
+++ b/control-center
@@ -458,11 +458,9 @@ $summary_darea->signal_connect(expose_event => sub {
my $style = $summary_darea->style->copy();
$style->font(Gtk::Gdk::Font->fontset_load(N("-*-helvetica-medium-r-normal-*-20-*-100-100-p-*-iso8859-1,*-r-*")));
$pix_dbl->draw_string($style->font, $summary_darea->style->black_gc, 80, 115, N("Welcome to the Mandrake Control Center"));
- local *VERS;
- open VERS, "/etc/mandrake-release" or die N("cannot open this file for read: %s", $!);
my ($sysname, $nodename, $release, undef, $machine) = uname();
my $i = 0;
- foreach ([N("System:"), substr(<VERS>, 0, -1)],
+ foreach ([N("System:"), &mandrake_release(), 0, -1],
[N("Hostname:"), $nodename],
[N("Kernel Version:"), $release],
[N("Machine:"), $machine]) {
@@ -487,7 +485,7 @@ $run_darea->signal_connect(expose_event => sub {
$pixbuf->get_width, $pixbuf->get_height, 'normal', 0, 0);
$run_counter += $run_counter_add;
$run_counter_add = -$run_counter_add if $run_counter < 100;
- $run_counter_add = -$run_counter_add if 245 < $run_counter;
+ $run_counter_add = -$run_counter_add if 245 < $run_counter;
});