diff options
-rwxr-xr-x | control-center | 6 |
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; }); |