aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-12-30 15:20:54 +0100
committerAngelo Naselli <anaselli@linux.it>2015-12-30 15:20:54 +0100
commit7275ed577dcb901b378ca87390e66fd29ec6603d (patch)
treec45125e0ba9b3b4788052064955e2167c0bf3fd9
parentb58d17211cd556246ba6775229704ee5e6e6e770 (diff)
downloadmanatools-7275ed577dcb901b378ca87390e66fd29ec6603d.tar
manatools-7275ed577dcb901b378ca87390e66fd29ec6603d.tar.gz
manatools-7275ed577dcb901b378ca87390e66fd29ec6603d.tar.bz2
manatools-7275ed577dcb901b378ca87390e66fd29ec6603d.tar.xz
manatools-7275ed577dcb901b378ca87390e66fd29ec6603d.zip
fixed icon and title
-rw-r--r--lib/ManaTools/Module/Proxy.pm10
-rwxr-xr-xscripts/manaproxy11
2 files changed, 9 insertions, 12 deletions
diff --git a/lib/ManaTools/Module/Proxy.pm b/lib/ManaTools/Module/Proxy.pm
index 3c078ef4..d726a7d4 100644
--- a/lib/ManaTools/Module/Proxy.pm
+++ b/lib/ManaTools/Module/Proxy.pm
@@ -46,9 +46,16 @@ has '+icon' => (
);
has '+name' => (
- default => "Proxymanager",
+ lazy => 1,
+ builder => '_nameInitializer',
);
+sub _nameInitializer {
+ my $self = shift;
+
+ return ($self->loc->N("manaproxy - Proxy configuration"));
+};
+
=head1 VERSION
Version 1.0.0
@@ -235,7 +242,6 @@ sub _manageProxyDialog {
my $appIcon = yui::YUI::app()->applicationIcon();
## set new title to get it in dialog
my $newTitle = $self->loc->N("Proxies configuration");
- yui::YUI::app()->setApplicationTitle($newTitle);
my $factory = yui::YUI::widgetFactory;
my $optional = yui::YUI::optionalWidgetFactory;
diff --git a/scripts/manaproxy b/scripts/manaproxy
index 61c99d51..323bc0d5 100755
--- a/scripts/manaproxy
+++ b/scripts/manaproxy
@@ -23,16 +23,7 @@ use ManaTools::Module::Proxy;
use yui;
-my $wm_icon = "/usr/share/mcc/themes/default/drakproxy-mdk.png";
-my $wm_name = "Proxies configuration";
-
-yui::YUI::app()->setApplicationTitle($wm_name);
-yui::YUI::app()->setApplicationIcon($wm_icon);
-
-my $proxyMan = ManaTools::Module::Proxy->new({
- icon => $wm_icon,
- name => $wm_name
- });
+my $proxyMan = ManaTools::Module::Proxy->new();
$proxyMan->start();
1;