about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/application.rs22
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 <rk@lakoliu.com>"])
-            .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) {