From 9ab31adf94325846cb7a87aff3523ecb278e4b12 Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.me.uk>
Date: Sat, 24 Sep 2022 16:54:53 +0100
Subject: [PATCH] Use Adwaita's about window and remove devel style

---
 data/window.blp | 1 -
 src/main.c      | 9 +++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/data/window.blp b/data/window.blp
index 5964747..67542cc 100644
--- a/data/window.blp
+++ b/data/window.blp
@@ -9,7 +9,6 @@ template RugbyAppWindow : ApplicationWindow {
   title: "Rugby";
   default-height: 600;
   default-width: 400;
-  styles ["devel"]
 
   [titlebar]
   HeaderBar {
diff --git a/src/main.c b/src/main.c
index abfa9a4..12d1fc8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,12 +30,13 @@ about_activated (G_GNUC_UNUSED GSimpleAction *simple,
 
     const char *authors[] = { "Bruce Cowan", NULL };
 
-    gtk_show_about_dialog (window,
-                           "logo-icon-name", "face-wink",
-                           "program-name", "Rugby",
+
+    adw_show_about_window (window,
+                           "application-icon", "face-wink",
+                           "application-name", "Rugby",
                            "copyright", "Copyright 2012–2022 Bruce Cowan",
                            "license-type", GTK_LICENSE_GPL_3_0,
-                           "authors", authors,
+                           "developers", authors,
                            "comments", "Rugby scores possibilities program",
                            "version", VERSION,
                            NULL);
-- 
GitLab