Skip to content
Snippets Groups Projects
Verified Commit e64c7225 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Use AdwAboutDialog

parent 3a096750
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
<file compressed="true" preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file compressed="true" preprocess="xml-stripblanks">gtk/prefs.ui</file>
<file compressed="true" preprocess="xml-stripblanks">gtk/window.ui</file>
<file compressed="true" preprocess="xml-stripblanks">uk.me.bcowan.Rugby.metainfo.xml</file>
</gresource>
<gresource prefix="/uk/me/bcowan/Rugby/icons/scalable/actions/">
<file compressed="true" preprocess="xml-stripblanks" alias="football-american-symbolic.svg">icons/football-american-symbolic.svg</file>
......
......@@ -3,6 +3,7 @@
<id>uk.me.bcowan.Rugby</id>
<name>Rugby</name>
<developer_name>Bruce Cowan</developer_name>
<summary>Find possibilities for rugby scores</summary>
<metadata_license>CC-BY-SA-4.0</metadata_license>
......
......@@ -20,7 +20,7 @@ gnome = import('gnome')
gio_dep = dependency('gio-2.0', version: '>= 2.76')
gtk_dep = dependency('gtk4', version: '>= 4.11.3')
libadwaita_dep = dependency('libadwaita-1', version: '>=1.4.beta')
libadwaita_dep = dependency('libadwaita-1', version: '>=1.5.beta')
conf = configuration_data()
......
/*
* SPDX-FileCopyrightText: 2012-2022 Bruce Cowan <bruce@bcowan.me.uk>
* SPDX-FileCopyrightText: 2012-2024 Bruce Cowan <bruce@bcowan.me.uk>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
......@@ -32,14 +32,12 @@ about_activated (G_GNUC_UNUSED GSimpleAction *simple,
GtkApplication *app = GTK_APPLICATION (user_data);
GtkWindow *window = gtk_application_get_active_window (app);
adw_show_about_window (window,
"application-icon", "football-american",
"application-name", "Rugby",
"copyright", "Copyright 2012–2022 Bruce Cowan",
"license-type", GTK_LICENSE_GPL_3_0,
"developer-name", "Bruce Cowan",
"version", VERSION,
NULL);
adw_show_about_dialog_from_appdata (GTK_WIDGET (window),
"uk/me/bcowan/Rugby/uk.me.bcowan.Rugby.metainfo.xml",
NULL,
"application-icon", "football-american",
"version", VERSION,
NULL);
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment