aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-05-05 16:43:43 +0200
committerAngelo Naselli <anaselli@linux.it>2015-05-05 16:43:43 +0200
commit8a9c6878a8aa455d5f3571ad15df121ceccdfbdf (patch)
treea2fe50e2797153a3a14a02492e94e325049b9142
parent138a40048107e5aac97b61201c801091bc559aa0 (diff)
downloadcolin-keep-8a9c6878a8aa455d5f3571ad15df121ceccdfbdf.tar
colin-keep-8a9c6878a8aa455d5f3571ad15df121ceccdfbdf.tar.gz
colin-keep-8a9c6878a8aa455d5f3571ad15df121ceccdfbdf.tar.bz2
colin-keep-8a9c6878a8aa455d5f3571ad15df121ceccdfbdf.tar.xz
colin-keep-8a9c6878a8aa455d5f3571ad15df121ceccdfbdf.zip
Set icon and title left in base class, default values into their
attributes initialization
-rw-r--r--lib/ManaTools/Module/Users.pm22
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/ManaTools/Module/Users.pm b/lib/ManaTools/Module/Users.pm
index 276a093..0c4b1b0 100644
--- a/lib/ManaTools/Module/Users.pm
+++ b/lib/ManaTools/Module/Users.pm
@@ -90,6 +90,16 @@ has '+icon' => (
default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser.png'),
);
+has '+name' => (
+ lazy => 1,
+ builder => '_nameInitializer',
+);
+
+sub _nameInitializer {
+ my $self = shift;
+
+ return ($self->loc->N("manauser - Mageia Users Management Tool"));
+}
# main dialog
has 'dialog' => (
@@ -247,10 +257,6 @@ my %groupEditLabel;
sub BUILD {
my $self = shift;
- if (! $self->name) {
- $self->name ($self->loc->N("manauser - Mageia Users Management Tool"));
- }
-
%userEditLabel = (
user_data => $self->loc->N("User Data"),
account_info => $self->loc->N("Account Info"),
@@ -2369,10 +2375,10 @@ sub _manageUsersDialog {
## push application title
my $appTitle = yui::YUI::app()->applicationTitle();
- ## set new title to get it in dialog
- yui::YUI::app()->setApplicationTitle($self->name);
- ## set icon if not already set by external launcher
- yui::YUI::app()->setApplicationIcon($self->icon);
+# ## set new title to get it in dialog
+# yui::YUI::app()->setApplicationTitle($self->name);
+# ## set icon if not already set by external launcher
+# yui::YUI::app()->setApplicationIcon($self->icon);
my $factory = yui::YUI::widgetFactory;