diff options
author | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-01-26 12:34:59 +0100 |
---|---|---|
committer | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-01-26 12:34:59 +0100 |
commit | e320a003f4d87921272c67d89acddd33c2602b0d (patch) | |
tree | a3eef91ed10b89ca1423da3cd7c0f34e5ed90118 | |
parent | 5febc9fdfaeb56c8db55795986db7dfa27470bab (diff) | |
download | manatools-e320a003f4d87921272c67d89acddd33c2602b0d.tar manatools-e320a003f4d87921272c67d89acddd33c2602b0d.tar.gz manatools-e320a003f4d87921272c67d89acddd33c2602b0d.tar.bz2 manatools-e320a003f4d87921272c67d89acddd33c2602b0d.tar.xz manatools-e320a003f4d87921272c67d89acddd33c2602b0d.zip |
- added the about button invoking the AboutDialog
-rw-r--r-- | AdminPanel/Hosts/GHosts.pm | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/AdminPanel/Hosts/GHosts.pm b/AdminPanel/Hosts/GHosts.pm index 97ad6b8a..82f95cd7 100644 --- a/AdminPanel/Hosts/GHosts.pm +++ b/AdminPanel/Hosts/GHosts.pm @@ -271,8 +271,11 @@ sub manageHostsDialog { $remButton->setWeight($yui::YD_HORIZ,1); my $hbox_foot = $factory->createHBox($layout); - my $cancelButton = $factory->createPushButton($factory->createLeft($hbox_foot),"Cancel"); - my $okButton = $factory->createPushButton($factory->createRight($hbox_foot),"OK"); + my $vbox_foot_left = $factory->createVBox($factory->createLeft($hbox_foot)); + my $vbox_foot_right = $factory->createVBox($factory->createRight($hbox_foot)); + my $aboutButton = $factory->createPushButton($vbox_foot_left,"About"); + my $cancelButton = $factory->createPushButton($vbox_foot_right,"Cancel"); + my $okButton = $factory->createPushButton($vbox_foot_right,"OK"); # main loop while(1) { @@ -312,6 +315,18 @@ sub manageHostsDialog { $self->cfgHosts->_writeHosts(); $self->setupTable(); } + }elsif ($widget == $aboutButton) { + AdminPanel::Shared::AboutDialog({ + name => $appTitle, + version => $VERSION, + copyright => "Copyright (c) 2013-2014 by Matteo Pasotti", + license => "GPLv2", + comments => "Graphical manager for hosts definitions", + website => "http://gitweb.mageia.org/software/adminpanel", + website_label => "WebSite", + authors => "Matteo Pasotti <matteo.pasotti\@gmail.com>" + } + ); }elsif ($widget == $okButton) { # write changes $self->cfgHosts->_writeHosts(); |