From ef353318a77ae12d51223c309cf9d2c3df6151fa Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Thu, 23 Mar 2023 10:09:53 +0100 Subject: #87: Implement libadwaita AboutWindow --- Cargo.toml | 1 + src/application.rs | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 76ab30b..7bae452 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,4 @@ version = "0.6.4" [dependencies.adw] package = "libadwaita" version = "0.3.1" +features = ["v1_3"] diff --git a/src/application.rs b/src/application.rs index 218bc9e..9a6ea79 100644 --- a/src/application.rs +++ b/src/application.rs @@ -181,21 +181,21 @@ impl FurtheranceApplication { fn show_about(&self) { let window = self.active_window().unwrap(); - let dialog = gtk::AboutDialog::builder() + let dialog = adw::AboutWindow::builder() + .application_name("Furtherance") + .application_icon(config::APP_ID) + .developer_name(gettext("Ricky Kresslein")) + .license_type(gtk::License::Gpl30) + .website("https://furtherance.app") + .issue_url("https://github.com/lakoliu/Furtherance/issues") + .version(config::VERSION) .transient_for(&window) .modal(true) - .program_name("Furtherance") - .logo_icon_name(config::APP_ID) - .version(config::VERSION) - .comments(&gettext("Track your time without being tracked")) - .copyright("© 2023 LakoLiu") - .authors(vec!["Ricky Kresslein "]) - .translator_credits(&gettext("translator-credits")) - .website("https://furtherance.app") - .license_type(gtk::License::Gpl30) + .copyright(gettext("© 2023 LakoLiu")) + .translator_credits(gettext("translator-credits")) .build(); - dialog.present(); + dialog.show(); } fn delete_history(&self) { -- cgit 1.4.1