summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-11-24 23:54:25 +0000
committerDaouda Lo <daouda@mandriva.com>2004-11-24 23:54:25 +0000
commitc35f35f4a50d1a6e32625b2578372eedb3963ffd (patch)
treea1cb24e0f4eb18d0fcc513c4b39c27f6ade4f2cd
parent9b05440ed970c5c79d3c0251d9177f066565b697 (diff)
downloadmgaonline-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-xmdkapplet2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 8c4bbae3..0efe0c67 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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