aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module/LogViewer.pm
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-05-09 09:44:15 +0200
committerMaarten Vanraes <alien@mageia.org>2016-05-09 10:22:32 +0200
commitbfbd54060e10f0f2cdfa417643f6dedee8fe0984 (patch)
tree3de0af4cce6726f3f8ac0576c1cc741c2ef7b074 /lib/ManaTools/Module/LogViewer.pm
parent2694a6180633ca8c5b176170b75d0189d3e42b75 (diff)
downloadmanatools-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/LogViewer.pm')
-rw-r--r--lib/ManaTools/Module/LogViewer.pm13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/ManaTools/Module/LogViewer.pm b/lib/ManaTools/Module/LogViewer.pm
index e471d1b0..b0237e25 100644
--- a/lib/ManaTools/Module/LogViewer.pm
+++ b/lib/ManaTools/Module/LogViewer.pm
@@ -69,19 +69,16 @@ use yui;
extends qw( ManaTools::Module );
-has '+icon' => (
- default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manalog.png'),
-);
-
has '+name' => (
- lazy => 1,
- builder => '_nameInitializer',
+ default => 'manalog',
+ required => 0,
+ init_arg => undef,
);
-sub _nameInitializer {
+sub _titleInitializer {
my $self = shift;
- return ($self->loc->N("Log viewer"));
+ return ($self->loc->N("%s - Log viewer", $self->name()));
}
has 'sh_gui' => (