aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-01-14 18:24:35 +0100
committerAngelo Naselli <anaselli@linux.it>2014-01-14 18:24:35 +0100
commitba8f98e4dbb9ae9490f86a5587818fde9ab31c45 (patch)
treed54a307e63f20e8dc00087000438ab6102f7e043 /modules
parente09c0e78c3e46bfc842f3c7fdbf0d01c90087710 (diff)
downloadmanatools-ba8f98e4dbb9ae9490f86a5587818fde9ab31c45.tar
manatools-ba8f98e4dbb9ae9490f86a5587818fde9ab31c45.tar.gz
manatools-ba8f98e4dbb9ae9490f86a5587818fde9ab31c45.tar.bz2
manatools-ba8f98e4dbb9ae9490f86a5587818fde9ab31c45.tar.xz
manatools-ba8f98e4dbb9ae9490f86a5587818fde9ab31c45.zip
Managed title and icon accordingly to the constructor
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/usermanager/adminUser16
-rwxr-xr-xmodules/usermanager/mgaAddUser17
2 files changed, 7 insertions, 26 deletions
diff --git a/modules/usermanager/adminUser b/modules/usermanager/adminUser
index e4cbe5fd..c7f5b23a 100755
--- a/modules/usermanager/adminUser
+++ b/modules/usermanager/adminUser
@@ -2,22 +2,12 @@
use lib qw(/usr/lib/libDrakX);
-use standalone; #- warning, standalone must be loaded very first, for 'explanations'
+use common qw(N);
-use common;
-use security::level;
-
-use AdminPanel::Shared;
use AdminPanel::Users::GUsers;
-use yui;
-
-my $wm_icon = "/usr/share/icons/userdrake.png";
-
-yui::YUI::app()->setApplicationTitle(N("Mageia Users Management Tool"));
-yui::YUI::app()->setApplicationIcon($wm_icon);
-
-my $userMan = AdminPanel::Users::GUsers->new();
+my $userMan = AdminPanel::Users::GUsers->new({icon => "/usr/share/icons/userdrake.png",
+ name => N("Mageia Users Management Tool"),});
$userMan->start();
1;
diff --git a/modules/usermanager/mgaAddUser b/modules/usermanager/mgaAddUser
index d9d2297c..f1af4bd3 100755
--- a/modules/usermanager/mgaAddUser
+++ b/modules/usermanager/mgaAddUser
@@ -2,21 +2,12 @@
use lib qw(/usr/lib/libDrakX);
-use standalone; #- warning, standalone must be loaded very first, for 'explanations'
+use common qw(N);
-use common;
-
-use AdminPanel::Shared;
use AdminPanel::Users::GUsers;
-use yui;
-
-my $wm_icon = "/usr/share/icons/userdrake.png";
-
-yui::YUI::app()->setApplicationTitle(N("Mageia Add Users Tool"));
-yui::YUI::app()->setApplicationIcon($wm_icon);
-
-my $userMan = AdminPanel::Users::GUsers->new();
-$userMan->addUserDialog();
+my $userMan = AdminPanel::Users::GUsers->new({icon => "/usr/share/icons/userdrake.png",
+ name => N("Mageia Add Users Tool"),});
+$userMan->addUserDialog(1);
1;