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:
committed by
Georges Basile Stavracas Neto
parent
704c0815a1
commit
0c8e1834f7
+2
-1
@@ -13,7 +13,7 @@ project(
|
||||
|
||||
calendar_version = meson.project_version()
|
||||
version_array = calendar_version.split('.')
|
||||
calendar_major_version = version_array[0].to_int()
|
||||
calendar_major_version = version_array[0]
|
||||
calendar_minor_version = version_array[1]
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ set_defines = [
|
||||
['PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), calendar_version)],
|
||||
['PACKAGE_TARNAME', meson.project_name()],
|
||||
['PACKAGE_URL', 'https://apps.gnome.org/Calendar/'],
|
||||
['MAJOR_VERSION', calendar_major_version + '.' + '0'],
|
||||
['PACKAGE_VERSION', calendar_version + rev],
|
||||
['VERSION', calendar_version + rev],
|
||||
['GETTEXT_PACKAGE', meson.project_name()],
|
||||
|
||||
Reference in New Issue
Block a user