From 42b36bf68bb74d945abd2c5a97f27d27154955f2 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Mon, 16 Feb 2015 17:00:47 +0100 Subject: Added AboutDialog --- modules/rpmdragora/dragoraUpdate | 45 +++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 26 deletions(-) (limited to 'modules') diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate index 9e304439..61e97108 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; - # $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("

Developers

- # - #

Translators

- # ", - # "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; + 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("

Developers

+ +

Translators

+ ", + "Angelo Naselli <anaselli\@linux.it>", + $translators + ), + }); } elsif ($widget == $packageTbl) { yui::YUI::app()->busyCursor(); -- cgit v1.2.1