aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-25 02:25:47 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:07 +0100
commit7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93 (patch)
tree51fa1bcad795c5fb42484814e1fb8f890469b010 /rpmdrake
parentd807f1d0710380376056939b10188d45f7abb4a8 (diff)
downloadrpmdrake-7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93.tar
rpmdrake-7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93.tar.gz
rpmdrake-7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93.tar.bz2
rpmdrake-7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93.tar.xz
rpmdrake-7ee50d8b855a8fbacd6aecb8ef2c4e9fd4c96c93.zip
(show_about_dlg) split it out
(needed for next commit)
Diffstat (limited to 'rpmdrake')
-rwxr-xr-xrpmdrake42
1 files changed, 22 insertions, 20 deletions
diff --git a/rpmdrake b/rpmdrake
index f58f4d67..ca6a9bdb 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -226,6 +226,27 @@ sub quit() {
real_quit();
}
+sub show_about_dlg {
+ my $license = formatAlaTeX(translate($::license));
+ $license =~ s/\n/\n\n/sg; # nicer formatting
+ my $w = gtknew('AboutDialog', name => N("Rpmdrake"),
+ version => $Rpmdrake::init::version,
+ copyright => N("Copyright (C) %s by Mandriva", '2002-2009'),
+ license => $license, wrap_license => 1,
+ comments => N("Rpmdrake is the Mageia package management tool."),
+ website => 'http://www.mageia.org',
+ website_label => N("Mageia"),
+ authors => 'Thierry Vignaud <vignaud@mandriva.com>',
+ artists => 'Hélène Durosini <ln@mandriva.com>',
+ translator_credits =>
+ #-PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
+ N("_: Translator(s) name(s) & email(s)\n"),
+ transient_for => $::main_window, modal => 1, position_policy => 'center-on-parent',
+ );
+ $w->show_all;
+ $w->run;
+}
+
sub run_treeview_dialog {
my ($callback_action) = @_;
@@ -624,26 +645,7 @@ sub run_treeview_dialog {
[ N("/_Help"), undef, undef, undef, '<Branch>' ],
[ N("/_Help") . N("/_Report Bug"), undef, sub { run_drakbug('rpmdrake') }, undef, '<Item>' ],
[ N("/_Help") . N("/_Help"), undef, sub { rpmdrake::open_help('') }, undef, '<Item>' ],
- [ N("/_Help") . N("/_About..."), undef, sub {
- my $license = formatAlaTeX(translate($::license));
- $license =~ s/\n/\n\n/sg; # nicer formatting
- my $w = gtknew('AboutDialog', name => N("Rpmdrake"),
- version => $Rpmdrake::init::version,
- copyright => N("Copyright (C) %s by Mandriva", '2002-2009'),
- license => $license, wrap_license => 1,
- comments => N("Rpmdrake is the Mageia package management tool."),
- website => 'http://www.mageia.org',
- website_label => N("Mageia"),
- authors => 'Thierry Vignaud <vignaud@mandriva.com>',
- artists => 'Hélène Durosini <ln@mandriva.com>',
- translator_credits =>
- #-PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
- N("_: Translator(s) name(s) & email(s)\n"),
- transient_for => $::main_window, modal => 1, position_policy => 'center-on-parent',
- );
- $w->show_all;
- $w->run;
- }, undef, '<Item>'
+ [ N("/_Help") . N("/_About..."), undef, \&show_about_dlg, undef, '<Item>'
]
);