aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/Services
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-01-14 18:38:16 +0100
committerAngelo Naselli <anaselli@linux.it>2014-01-14 18:38:16 +0100
commit963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f (patch)
treecd7c7a29b286dedaa8aa109d9b4285e284684ab6 /AdminPanel/Services
parentba8f98e4dbb9ae9490f86a5587818fde9ab31c45 (diff)
downloadcolin-keep-963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f.tar
colin-keep-963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f.tar.gz
colin-keep-963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f.tar.bz2
colin-keep-963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f.tar.xz
colin-keep-963b4b7c7f0ab173e2c732dddb7d0aa7c6e4a48f.zip
Fixed also admin service (title and icon)
Diffstat (limited to 'AdminPanel/Services')
-rw-r--r--AdminPanel/Services/AdminService.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/AdminPanel/Services/AdminService.pm b/AdminPanel/Services/AdminService.pm
index 2f3f1d9..3dfb38f 100644
--- a/AdminPanel/Services/AdminService.pm
+++ b/AdminPanel/Services/AdminService.pm
@@ -21,9 +21,6 @@
package AdminPanel::Services::AdminService;
-
-
-
#-######################################################################################
#- misc imports
#-######################################################################################
@@ -239,8 +236,11 @@ sub servicePanel {
my $self = shift;
my $appTitle = yui::YUI::app()->applicationTitle();
+
## set new title to get it in dialog
- yui::YUI::app()->setApplicationTitle(N("Services and daemons"));
+ yui::YUI::app()->setApplicationTitle($self->name);
+ ## set icon if not already set by external launcher
+ yui::YUI::app()->setApplicationIcon($self->icon);
my ($l, $on_services) = services();
my @xinetd_services = map { $_->[0] } xinetd_services();
@@ -329,8 +329,8 @@ sub servicePanel {
elsif ($widget == $aboutButton) {
my $license = translate($::license);
# TODO fix version value
- AboutDialog({ name => N("Services and daemons"),
- version => "1.0.0",
+ AboutDialog({ name => N("AdminService"),
+ version => $self->VERSION,
copyright => N("Copyright (C) %s Mageia community", '2013-2014'),
license => $license,
comments => N("Service Manager is the Mageia service and daemon management tool \n(from the original idea of Mandriva draxservice)."),
@@ -376,7 +376,7 @@ sub servicePanel {
$dialog->destroy();
#restore old application title
- yui::YUI::app()->setApplicationTitle($appTitle);
+ yui::YUI::app()->setApplicationTitle($appTitle) if $appTitle;
}
no Moose;