diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-11-24 23:54:25 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-11-24 23:54:25 +0000 |
commit | c35f35f4a50d1a6e32625b2578372eedb3963ffd (patch) | |
tree | a1cb24e0f4eb18d0fcc513c4b39c27f6ade4f2cd | |
parent | 9b05440ed970c5c79d3c0251d9177f066565b697 (diff) | |
download | mgaonline-c35f35f4a50d1a6e32625b2578372eedb3963ffd.tar mgaonline-c35f35f4a50d1a6e32625b2578372eedb3963ffd.tar.gz mgaonline-c35f35f4a50d1a6e32625b2578372eedb3963ffd.tar.bz2 mgaonline-c35f35f4a50d1a6e32625b2578372eedb3963ffd.tar.xz mgaonline-c35f35f4a50d1a6e32625b2578372eedb3963ffd.zip |
added online host on GUI submitted by rwira
-rwxr-xr-x | mdkapplet | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -203,6 +203,7 @@ sub refresh_status { sub refresh_contents { my $status = shift; my $color = {}; + my %h = getVarsFromSh($conffile); foreach my $l (['first', 'red'], ['second', 'royalblue3'], ['third', 'green']) { $color->{$l->[0]} = { 'foreground' => $l->[1], 'weight' => Gtk2::Pango->PANGO_WEIGHT_BOLD } } @@ -210,6 +211,7 @@ sub refresh_contents { my $last = lastCheck(); my $contents = [ [ N("Network Connection: "), $color->{second} ], [ isNetwork() ? N("Up") . "\n" : N("Down") . "\n", isNetwork() ? $color->{third} : $color->{first} ], [ N("Last check: "), $color->{second} ], [ "$last\n", $fixed_tag ], + [ N("Machine name:"), $color->{second} ], [ $h{MACHINE} . "\n", $fixed_tag ], [ N("Updates: "), $color->{second} ], [ common::sprintf_fixutf8($state{$status}{tt}[0]), $status eq 'okay' ? $color->{third} : $color->{first} ], ]; $contents |