Debian Codegraph @

podcasts-gtk/src/widgets/aboutdialog.rs

raw symbols SCIP
1 // aboutdialog.rs
2 //
3 // Copyright 2017 Jordan Petridis <[email protected]>
4 //
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // SPDX-License-Identifier: GPL-3.0-or-later
19
20 use crate::config::{APP_ID, VERSION};
21 use adw::prelude::*;
22
23 use crate::i18n::i18n;
24
25 /// Takes a `window` and creates and attaches an `adw::AboutWindow` to it.
26 pub(crate) fn about_dialog(window: &gtk::ApplicationWindow) {
27 // Feel free to add yourself if you contributed.
28 // Please keep it sorted alphabetically
29 let developers = vec![
30 "Alexandre Franke",
31 "Carlos Soriano",
32 "Constantin Nickel",
33 "Daniel García Moreno",
34 "Felix Häcker",
35 "Gabriele Musco",
36 "Ivan Augusto",
37 "James Wykeham-Martin",
38 "Jordan Petridis",
39 "Jordan Williams",
40 "Julian Hofer",
41 "Julian Sparber",
42 "Matthew Martin",
43 "Piotr Drąg",
44 "Rowan Lewis",
45 "Zander Brown",
46 ];
47
48 let designers = vec!["Tobias Bernard", "Sam Hewitt"];
49
50 let dialog = adw::AboutDialog::builder()
51 .application_icon(APP_ID)
52 .comments(i18n("Podcast Client for the GNOME Desktop.").as_str())
53 .copyright("© 2017-2021 Jordan Petridis")
54 .license_type(gtk::License::Gpl30)
55 .version(VERSION)
56 .application_name(i18n("Podcasts"))
57 .website("https://gitlab.gnome.org/World/podcasts")
58 .issue_url("https://gitlab.gnome.org/World/podcasts/-/issues")
59 .developer_name("Jordan Petridis, et al.")
60 .developers(developers)
61 .designers(designers)
62 .translator_credits(i18n("translator-credits").as_str())
63 .build();
64
65 dialog.present(Some(window));
66 }