aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-04-29 15:16:53 +0200
committerAngelo Naselli <anaselli@linux.it>2015-04-29 15:16:53 +0200
commit521ffe4048d99419d3941f87248bc1f8dfc0adf9 (patch)
treedb7a0b0328706cb389a6ab88169a55f716febf49 /lib/ManaTools/Module
parent92d7c81bda8496168faf5b7589eb3761a9b9f00c (diff)
downloadmanatools-521ffe4048d99419d3941f87248bc1f8dfc0adf9.tar
manatools-521ffe4048d99419d3941f87248bc1f8dfc0adf9.tar.gz
manatools-521ffe4048d99419d3941f87248bc1f8dfc0adf9.tar.bz2
manatools-521ffe4048d99419d3941f87248bc1f8dfc0adf9.tar.xz
manatools-521ffe4048d99419d3941f87248bc1f8dfc0adf9.zip
Managed button icons from manauser instead of userdrake
Diffstat (limited to 'lib/ManaTools/Module')
-rw-r--r--lib/ManaTools/Module/Users.pm39
1 files changed, 29 insertions, 10 deletions
diff --git a/lib/ManaTools/Module/Users.pm b/lib/ManaTools/Module/Users.pm
index 8376f3e7..276a0930 100644
--- a/lib/ManaTools/Module/Users.pm
+++ b/lib/ManaTools/Module/Users.pm
@@ -87,7 +87,7 @@ use feature 'state';
extends qw( ManaTools::Module );
has '+icon' => (
- default => "/usr/share/icons/userdrake.png",
+ default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser.png'),
);
@@ -248,7 +248,7 @@ sub BUILD {
my $self = shift;
if (! $self->name) {
- $self->name ($self->loc->N("manauser"));
+ $self->name ($self->loc->N("manauser - Mageia Users Management Tool"));
}
%userEditLabel = (
@@ -1159,7 +1159,7 @@ sub _refreshUsers {
);
# TODO workaround to get first cell at least until we don't
- # a cast from YItem
+ # have a cast from YItem
$item->setLabel( $username );
$itemColl->push($item);
$item->DISOWN();
@@ -2366,8 +2366,6 @@ sub _manageUsersDialog {
return;
}
- ## TODO fix for manatools
- my $pixdir = '/usr/share/userdrake/pixmaps/';
## push application title
my $appTitle = yui::YUI::app()->applicationTitle();
@@ -2419,12 +2417,33 @@ sub _manageUsersDialog {
my $hbox = $factory->createHBox($layout);
$hbox = $factory->createHBox($factory->createLeft($hbox));
+
$self->set_widget(
- add_user => $factory->createIconButton($hbox, $pixdir . 'user_add.png', $self->loc->N("Add User")),
- add_group => $factory->createIconButton($hbox, $pixdir . 'group_add.png', $self->loc->N("Add Group")),
- edit => $factory->createIconButton($hbox, $pixdir . 'user_conf.png', $self->loc->N("Edit")),
- del => $factory->createIconButton($hbox, $pixdir . 'user_del.png', $self->loc->N("Delete")),
- refresh => $factory->createIconButton($hbox, $pixdir . 'refresh.png', $self->loc->N("Refresh")),
+ add_user => $factory->createIconButton(
+ $hbox,
+ File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser/user_add.png'),
+ $self->loc->N("Add User")
+ ),
+ add_group => $factory->createIconButton(
+ $hbox,
+ File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser/group_add.png'),
+ $self->loc->N("Add Group")
+ ),
+ edit => $factory->createIconButton(
+ $hbox,
+ File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser/user_conf.png'),
+ $self->loc->N("Edit")
+ ),
+ del => $factory->createIconButton(
+ $hbox,
+ File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser/user_del.png'),
+ $self->loc->N("Delete")
+ ),
+ refresh => $factory->createIconButton(
+ $hbox,
+ File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser/refresh.png'),
+ $self->loc->N("Refresh")
+ ),
action_menu => $actionMenu,
);