diff options
author | Maarten Vanraes <alien@mageia.org> | 2016-05-09 09:44:15 +0200 |
---|---|---|
committer | Maarten Vanraes <alien@mageia.org> | 2016-05-09 10:22:32 +0200 |
commit | bfbd54060e10f0f2cdfa417643f6dedee8fe0984 (patch) | |
tree | 3de0af4cce6726f3f8ac0576c1cc741c2ef7b074 /lib/ManaTools/Module/Hosts.pm | |
parent | 2694a6180633ca8c5b176170b75d0189d3e42b75 (diff) | |
download | manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.gz manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.bz2 manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.xz manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.zip |
Modules: provide title & icon using the new Module
Diffstat (limited to 'lib/ManaTools/Module/Hosts.pm')
-rw-r--r-- | lib/ManaTools/Module/Hosts.pm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/ManaTools/Module/Hosts.pm b/lib/ManaTools/Module/Hosts.pm index 4d069a62..48b2cfdd 100644 --- a/lib/ManaTools/Module/Hosts.pm +++ b/lib/ManaTools/Module/Hosts.pm @@ -36,19 +36,16 @@ use ManaTools::Shared::Hosts; extends qw( ManaTools::Module ); -has '+icon' => ( - default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manahost.png'), -); - has '+name' => ( - lazy => 1, - builder => '_nameInitializer', + default => 'manahost', + required => 0, + init_arg => undef, ); -sub _nameInitializer { +sub _titleInitializer { my $self = shift; - return ($self->loc->N("manahost - manage hosts definitions")); + return ($self->loc->N("%s - manage hosts definitions", $self->name())); } has 'dialog' => ( |