aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-01-01 22:38:12 +0100
committerAngelo Naselli <anaselli@linux.it>2016-01-01 22:38:12 +0100
commit1f285ac9035730964e7cfc6614772ba5aba68c71 (patch)
treecfb171eb3426a7271cb517c0261d3bdba2a7b298 /lib/ManaTools
parent9af61d15c6e5b91f97774d02efec5c1469bcf653 (diff)
downloadmanatools-1f285ac9035730964e7cfc6614772ba5aba68c71.tar
manatools-1f285ac9035730964e7cfc6614772ba5aba68c71.tar.gz
manatools-1f285ac9035730964e7cfc6614772ba5aba68c71.tar.bz2
manatools-1f285ac9035730964e7cfc6614772ba5aba68c71.tar.xz
manatools-1f285ac9035730964e7cfc6614772ba5aba68c71.zip
fixed mpan icon
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/MainDisplay.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/ManaTools/MainDisplay.pm b/lib/ManaTools/MainDisplay.pm
index c6e3d010..b329a8c9 100644
--- a/lib/ManaTools/MainDisplay.pm
+++ b/lib/ManaTools/MainDisplay.pm
@@ -120,6 +120,8 @@ has '+name' => (
);
has '+icon' => (
+ is => 'rw',
+ isa => 'Str',
default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/mageia.png'),
);
@@ -381,9 +383,7 @@ sub _setupGui {
$DB::single = 1;
$self->title($self->settings()->{title});
- yui::YUI::app()->setApplicationTitle($self->title);
$self->icon($self->settings()->{icon}) if $self->settings()->{icon};
- yui::YUI::app()->setApplicationIcon($self->icon);
my $dialog = ManaTools::Shared::GUI::Dialog->new(
module => $self,
@@ -502,6 +502,12 @@ sub _setupGui {
$module->rightPaneFrame()->setLabel($module->currCategory()->name());
$factory->createSpacing($module->rightPane(), 1, 1, 1.0 );
+ # Note that Since mpan is a Manatools::Module and creates other modules
+ # title and application are set into BUILD (e.g. constructor) so last
+ # built one is the one shown. Forcing setting again here
+ yui::YUI::app()->setApplicationTitle($self->title);
+ yui::YUI::app()->setApplicationIcon($self->icon);
+
return $self->widget('layout');
},
);