diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-02-16 17:00:47 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-02-16 17:00:47 +0100 |
commit | 42b36bf68bb74d945abd2c5a97f27d27154955f2 (patch) | |
tree | dc6eac18d8bb80035f5d7b54237102da1cd21c35 /modules/rpmdragora | |
parent | 4fe71d6261bad0b7f3cdd1a7d157f579f13b320f (diff) | |
download | colin-keep-42b36bf68bb74d945abd2c5a97f27d27154955f2.tar colin-keep-42b36bf68bb74d945abd2c5a97f27d27154955f2.tar.gz colin-keep-42b36bf68bb74d945abd2c5a97f27d27154955f2.tar.bz2 colin-keep-42b36bf68bb74d945abd2c5a97f27d27154955f2.tar.xz colin-keep-42b36bf68bb74d945abd2c5a97f27d27154955f2.zip |
Added AboutDialog
Diffstat (limited to 'modules/rpmdragora')
-rwxr-xr-x | modules/rpmdragora/dragoraUpdate | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate index 9e30443..61e9710 100755 --- a/modules/rpmdragora/dragoraUpdate +++ b/modules/rpmdragora/dragoraUpdate @@ -35,14 +35,10 @@ use AdminPanel::Rpmdragora::rpmnew; use AdminPanel::Rpmdragora::formatting; use AdminPanel::Rpmdragora::pkg; use AdminPanel::Shared::Locales; +use AdminPanel::Shared::GUI; use yui; -#use mygtk2 qw(gtknew); #- do not import anything else, especially gtkadd() which conflicts with ugtk2 one -#use ugtk2 qw(:all); -# use Gtk2::SimpleList; - - # make Rpmdrake::gui aware MageiaUpdate do not use the same columns ids as rpmdrake: %pkg_columns = ( @@ -284,27 +280,24 @@ sub run_treeview_dialog { last if quit(); } elsif ($widget == $aboutButton) { - # my $translators = $loc->N("_: Translator(s) name(s) & email(s)\n"); - # $translators =~ s/\</\<\;/g; - # $translators =~ s/\>/\>\;/g; - # $self->sh_gui->AboutDialog({ name => $self->name, - # version => $self->VERSION, - # credits => $loc->N("Copyright (C) %s Mageia community", '2013-2014'), - # license => $loc->N("GPLv2"), - # description => $loc->N("dragoraUpdate is the Mageia update tool\n - # (from the original idea of Mandriva MandrivaUpdate)."), - # authors => $loc->N("<h3>Developers</h3> - # <ul><li>%s</li> - # <li>%s</li> - # </ul> - # <h3>Translators</h3> - # <ul><li>%s</li></ul>", - # "Angelo Naselli <anaselli\@linux.it>", - # "Matteo Pasotti <matteo.pasotti\@gmail.com>", - # $translators - # ), - # } - # ); + my $translators = $loc->N("_: Translator(s) name(s) & email(s)\n"); + $translators =~ s/\</\<\;/g; + $translators =~ s/\>/\>\;/g; + my $sh_gui = AdminPanel::Shared::GUI->new(); + $sh_gui->AboutDialog({ + name => "dragoraUpdate", + version => $VERSION, + credits => $loc->N("Copyright (C) %s Mageia community", '2013-2015'), + license => $loc->N("GPLv2"), + description => $loc->N("dragoraUpdate is the Mageia package management tool."), + authors => $loc->N("<h3>Developers</h3> + <ul><li>%s</li></ul> + <h3>Translators</h3> + <ul><li>%s</li></ul>", + "Angelo Naselli <anaselli\@linux.it>", + $translators + ), + }); } elsif ($widget == $packageTbl) { yui::YUI::app()->busyCursor(); |