aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module/Firewall.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-01-01 16:41:57 +0100
committerAngelo Naselli <anaselli@linux.it>2016-01-01 16:41:57 +0100
commitbd52d8fa9689c8e8dd164618bfe489a003037866 (patch)
tree5d64501af64676d16b1c8bd7176b5457f14da19e /lib/ManaTools/Module/Firewall.pm
parent6a54e267dd03c20d8c8229929037a2cd0853a6a5 (diff)
downloadmanatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar
manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.gz
manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.bz2
manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.tar.xz
manatools-bd52d8fa9689c8e8dd164618bfe489a003037866.zip
Restored Icon and Title behaviour or they were missed in mpan,
using Shared::GUI::Dialog solves this problem
Diffstat (limited to 'lib/ManaTools/Module/Firewall.pm')
-rw-r--r--lib/ManaTools/Module/Firewall.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/ManaTools/Module/Firewall.pm b/lib/ManaTools/Module/Firewall.pm
index a5081a82..a5407e59 100644
--- a/lib/ManaTools/Module/Firewall.pm
+++ b/lib/ManaTools/Module/Firewall.pm
@@ -518,6 +518,12 @@ sub ask_WatchedServices {
## set new title to get it in dialog
yui::YUI::app()->setApplicationTitle($dlg_data->{title});
+ ## TODO remove title and icon when using Shared::Module::GUI::Dialog
+ ## set new title to get it in dialog
+ yui::YUI::app()->setApplicationTitle($dlg_data->{title});
+ ## set icon if not already set by external launcher
+ yui::YUI::app()->setApplicationIcon($dlg_data->{icon});
+
my $factory = yui::YUI::widgetFactory;
my $optional = yui::YUI::optionalWidgetFactory;
@@ -722,6 +728,13 @@ sub ask_AllowedServices {
$self->dialog($factory->createMainDialog());
my $layout = $factory->createVBox($self->dialog);
+ ## TODO remove title and icon when using Shared::Module::GUI::Dialog
+ ## set new title to get it in dialog
+ yui::YUI::app()->setApplicationTitle($dlg_data->{title});
+ ## set icon if not already set by external launcher
+ yui::YUI::app()->setApplicationIcon($dlg_data->{icon});
+
+
my $hbox_header = $factory->createHBox($layout);
my $headLeft = $factory->createHBox($factory->createLeft($hbox_header));
my $headRight = $factory->createHBox($factory->createRight($hbox_header));