diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-07-09 05:41:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-07-09 05:41:11 +0000 |
commit | b2e45065dfe94a03c0b9add0140b0f21020c7619 (patch) | |
tree | 97723ec97e5b1b3fbd7671312d6f934be523738d | |
parent | 8ba6a52aecf72a9925ad6318991a3186e3e0d5b1 (diff) | |
download | rpmdrake-b2e45065dfe94a03c0b9add0140b0f21020c7619.tar rpmdrake-b2e45065dfe94a03c0b9add0140b0f21020c7619.tar.gz rpmdrake-b2e45065dfe94a03c0b9add0140b0f21020c7619.tar.bz2 rpmdrake-b2e45065dfe94a03c0b9add0140b0f21020c7619.tar.xz rpmdrake-b2e45065dfe94a03c0b9add0140b0f21020c7619.zip |
add an about dialog
-rwxr-xr-x | rpmdrake | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1164,6 +1164,28 @@ Is it ok to continue?", [ N("/_Help"), undef, undef, undef, '<Branch>' ], [ N("/_Help") . N("/_Report Bug"), undef, sub { run_program::raw({ detach => 1 }, 'drakbug', '--report', 'rpmdrake') }, undef, '<Item>' ], [ N("/_Help") . N("/_Help"), undef, sub { rpmdrake::open_help($MODE) }, 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 => '2007', + copyright => N("Copyright (C) %s by Mandriva", '2002-2006'), + license => $license, wrap_license => 1, + comments => N("Rpmdrake is Mandriva Linux package management tool."), + website => 'http://mandrivalinux.com', + website_label => N("Mandriva Linux"), + 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>' + ] + ); $checkbox_show_autoselect = $factory->get_widget("<main>" . strip_first_underscore(N("/_Options"), N("/_Show automatically selected packages"))) and $checkbox_show_autoselect->set_active(!$dont_show_selections); |