about, appdata: Port to AdwAboutDialog.new_from_appdata

This removes a lot of duplicated code, as we can simply reuse the
appdata file. It will also allow us to add release notes without
needing to rewrite them. A simple update in the
`adw_about_dialog_new_from_appdata` method will take care of
displaying the release notes.

This also renames the appdata file from `appdata.xml` to
`metainfo.xml`, as `appdata.xml` is considered a legacy filename.
This commit is contained in:
Hari Rana
2024-04-26 12:56:14 +00:00
committed by Georges Basile Stavracas Neto
parent 704c0815a1
commit 0c8e1834f7
7 changed files with 36 additions and 21 deletions
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/calendar">
<file alias="appdata">@appid@.metainfo.xml</file>
</gresource>
</gresources>