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
@@ -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>
|
||||
@@ -0,0 +1,38 @@
|
||||
appdata_conf = configuration_data()
|
||||
appdata_conf.set('appid', application_id)
|
||||
appdata = i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: files('org.gnome.Calendar.metainfo.xml.in.in'),
|
||||
output: 'org.gnome.Calendar.metainfo.xml.in',
|
||||
configuration: appdata_conf
|
||||
),
|
||||
output: '@0@.metainfo.xml'.format(application_id),
|
||||
po_dir: po_dir,
|
||||
install: true,
|
||||
install_dir: calendar_datadir / 'metainfo'
|
||||
)
|
||||
|
||||
# Validate Appdata
|
||||
appstreamcli = find_program('appstreamcli', required: false)
|
||||
if appstreamcli.found()
|
||||
test(
|
||||
'Validate appstream file',
|
||||
appstreamcli,
|
||||
args: ['validate', '--no-net', '--explain', appdata.full_path()],
|
||||
depends: appdata,
|
||||
)
|
||||
endif
|
||||
|
||||
## GResource
|
||||
gresource = configure_file(
|
||||
input: 'appdata.gresource.xml.in',
|
||||
output: 'appdata.gresource.xml',
|
||||
configuration: appdata_conf,
|
||||
)
|
||||
|
||||
built_sources += gnome.compile_resources(
|
||||
'appdata-resources',
|
||||
gresource,
|
||||
c_name: 'appdata',
|
||||
dependencies: [gresource, appdata],
|
||||
)
|
||||
@@ -0,0 +1,439 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Igor Gnatenko <ignatenko@src.gnome.org> -->
|
||||
<component type="desktop">
|
||||
<id>@appid@.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-3.0-or-later</project_license>
|
||||
<name>Calendar</name>
|
||||
<summary>Manage your schedule</summary>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar is an elegant tool to help you plan and stay on top of your schedule for
|
||||
upcoming days and weeks, whether your months are filled with meetings and appointments,
|
||||
public events, travel logistics, or other commitments in your life.
|
||||
</p>
|
||||
<p>
|
||||
Easily create and manage unlimited calendars and events with GNOME Calendar's infinite
|
||||
scrolling month view, week timetable, and scheduling list view.
|
||||
</p>
|
||||
<p>
|
||||
Integrating the latest GNOME technologies and design best practices, GNOME Calendar builds on
|
||||
top of the mature Evolution data server to manage large quantities of events and to provide
|
||||
integration with other applications. You can add calendars from various online calendaring
|
||||
services (like NextCloud, Google Calendar, and CalDAV / WebDAV servers), enabling you to
|
||||
synchronize your events across multiple devices and platforms. GNOME Calendar also supports
|
||||
local and offline calendaring, so you can use it anywhere and anytime while travelling
|
||||
(or after civilization's collapse.)
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<caption>Week view</caption>
|
||||
<image>https://static.gnome.org/appdata/gnome-43/calendar/calendar-week.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Month view</caption>
|
||||
<image>https://static.gnome.org/appdata/gnome-43/calendar/calendar-month.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Event editor</caption>
|
||||
<image>https://static.gnome.org/appdata/gnome-43/calendar/calendar-event.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
|
||||
<kudos>
|
||||
<kudo>AppMenu</kudo>
|
||||
<kudo>HiDpiIcon</kudo>
|
||||
<kudo>ModernToolkit</kudo>
|
||||
<kudo>SearchProvider</kudo>
|
||||
</kudos>
|
||||
|
||||
<url type="homepage">https://apps.gnome.org/Calendar/</url>
|
||||
<url type="bugtracker">https://gitlab.gnome.org/GNOME/gnome-calendar/issues</url>
|
||||
<url type="donation">https://www.gnome.org/donate/</url>
|
||||
<url type="vcs-browser">https://gitlab.gnome.org/GNOME/gnome-calendar</url>
|
||||
<url type="translate">https://l10n.gnome.org/module/gnome-calendar/</url>
|
||||
<url type="contribute">https://welcome.gnome.org/app/Calendar/</url>
|
||||
<url type="contact">https://matrix.to/#/#gnome-calendar:gnome.org</url>
|
||||
<url type="help">https://discourse.gnome.org/tag/calendar</url>
|
||||
<project_group>GNOME</project_group>
|
||||
<developer_name>The GNOME Project</developer_name>
|
||||
<developer id="org.gnome">
|
||||
<name>The GNOME Project</name>
|
||||
</developer>
|
||||
|
||||
<releases>
|
||||
<release date="2024-03-18" version="46.0" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Properly stop the weather service when running in Flatpak</li>
|
||||
<li>Various timezone-related fixes</li>
|
||||
<li>Improved visuals for the Month view</li>
|
||||
<li>Use modern Adwaita dialogs</li>
|
||||
<li>New and updated translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2023-10-23" version="45.1" type="stable" />
|
||||
<release date="2023-09-18" version="45.0" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>New month view with inifinite scrolling support</li>
|
||||
<li>Lots of performance and stability fixes</li>
|
||||
<li>Improved visuals for the sidebar</li>
|
||||
<li>Use modern widgets in various places</li>
|
||||
<li>New and updated translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2023-09-02" version="45~rc" type="development" />
|
||||
<release date="2023-08-18" version="45~beta" type="development" />
|
||||
|
||||
<release date="2023-03-16" version="44.0" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Improve sizing of event editor dialog</li>
|
||||
<li>Fix search not working anymore</li>
|
||||
<li>Fix sidebar not opening events</li>
|
||||
<li>New and updated translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2023-03-06" version="44~rc" type="development" />
|
||||
<release date="2023-02-14" version="44~beta" type="development" />
|
||||
<release date="2022-09-03" version="43.1" type="stable" />
|
||||
|
||||
<release date="2022-09-03" version="43.0" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Navigation sidebar with weekly events</li>
|
||||
<li>New and updated translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2022-09-03" version="43~rc" type="development" />
|
||||
<release date="2022-08-12" version="43~beta" type="development" />
|
||||
<release date="2022-07-09" version="43~alpha" type="development" />
|
||||
|
||||
<release date="2022-03-18" version="42.0" type="stable">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Port to GTK4</li>
|
||||
<li>Various UI tweaks</li>
|
||||
<li>Much improved timezone handling</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2021-09-17" version="41.0" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar 41.0 release brings updated translations, and new event preview
|
||||
popover, and the ability to import events from calendar files.
|
||||
</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2021-06-03" version="40.2" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar 40.2 release brings updated translations, and a fix to
|
||||
weather forecast not showing.
|
||||
</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2021-05-11" version="40.1" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar 40.1 release brings stability improvements, updated translations.
|
||||
</p>
|
||||
<p>
|
||||
With this release, the code to fetch the system timezone is more robust, and doesn't
|
||||
crash if for some reason it fails to find the system timezone.
|
||||
</p>
|
||||
<p>
|
||||
A couple of documented keyboard shortcuts weren't working, and with this release they
|
||||
are functional again.
|
||||
</p>
|
||||
<p>
|
||||
Thanks to the new contributors that helped with this release of GNOME Calendar!
|
||||
</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2021-03-22" version="40.0" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar 40.0 release brings stability improvements, updated translations,
|
||||
and minor visual updates.
|
||||
</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2020-09-12" version="3.38.0" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
GNOME Calendar 3.38 release is here! This release brings stability
|
||||
improvements and more security by preventing data loss when moving
|
||||
events to other calendars.
|
||||
</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2020-03-06" version="3.36.0" type="stable">
|
||||
<description>
|
||||
<p>GNOME Calendar 3.36 release is here!</p>
|
||||
<p>
|
||||
This is an exciting release with many improvements and new features:
|
||||
</p>
|
||||
<ul>
|
||||
<li>The event editor dialog was redesigned and reimplemented</li>
|
||||
<li>Minor tweaks to the main interface</li>
|
||||
<li>Many improvements and fixes</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2019-09-09" version="3.34.0" type="stable">
|
||||
<description>
|
||||
<p>GNOME Calendar 3.34 release is here!</p>
|
||||
<p>
|
||||
This release comes with many improvements and new features:
|
||||
</p>
|
||||
<ul>
|
||||
<li>The calendar management dialog was redesigned and reimplemented</li>
|
||||
<li>Discovering online calendars is much more reliable</li>
|
||||
<li>Minor tweaks to the main interface</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2019-03-11" version="3.32.0" type="stable">
|
||||
<description>
|
||||
<p>GNOME Calendar 3.32.0 release is here!</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2018-09-03" version="3.30.0" type="stable">
|
||||
<description>
|
||||
<p>GNOME Calendar 3.30.0 release is here!</p>
|
||||
<p>The major highlight of this release is the integration with GNOME's Night Light, making GNOME Calendar use the dark variant of the theme when Night Light is active.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2018-08-27" version="3.29.92" type="development">
|
||||
<description>
|
||||
<p>This release bring a small improvement and updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2018-07-30" version="3.29.90" type="development">
|
||||
<description>
|
||||
<p>This release brings small improvements, bug fixes, and updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2018-03-05" version="3.27.92" type="development">
|
||||
<description>
|
||||
<p>This is the release candidate version of the next big release of GNOME Calendar, and it brings a few Flatpak improvements.</p>
|
||||
<p>This release also updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2018-02-12" version="3.27.90" type="development">
|
||||
<description>
|
||||
<p>This is the alpha version of the next big release of GNOME Calendar, and it brings the following new features and improvements:</p>
|
||||
<ul>
|
||||
<li>Big code refactorings that lead to more stability and ease of maintainership.</li>
|
||||
<li>Follow-up improvements after rewritting the Month view.</li>
|
||||
<li>The Flatpak Nightly builds of GNOME Calendar now have debugging and tracing enabled by default. This
|
||||
will allow testers to report bugs with more precision.
|
||||
</li>
|
||||
<li>Huge memory leaks were also fixed.</li>
|
||||
</ul>
|
||||
<p>This release also updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-11-15" version="3.27.2" type="development">
|
||||
<description>
|
||||
<p>This release brings the following new features and improvements:</p>
|
||||
<ul>
|
||||
<li>Month view was rewritten, and received a substantial redesign.</li>
|
||||
<li>Events were also redesigned. All-day events look different than timed events.</li>
|
||||
<li>Improvements when adding calendars from files.</li>
|
||||
</ul>
|
||||
<p>This release also updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-08-11" version="3.25.90" type="development">
|
||||
<description>
|
||||
<p>
|
||||
The GNOME Calendar team is proud to announce the 3.25.90 release of
|
||||
GNOME Calendar, the third release in the next (3.26) unstable series.
|
||||
</p>
|
||||
<p>This release brings the following new features and improvements:</p>
|
||||
<ul>
|
||||
<li>Add the options to add, modify and remove recurrences from events.</li>
|
||||
<li>Improve Month view by greying out out-of-range days.</li>
|
||||
<li>Completely move to the Meson build system. This allows building Calendar at least 3x faster.</li>
|
||||
</ul>
|
||||
<p>This release also updates many translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-06-19" version="3.25.3" type="development">
|
||||
<description>
|
||||
<p>
|
||||
The GNOME Calendar team is proud to announce the 3.25.3 release of
|
||||
GNOME Calendar, the first release in the next (3.26) unstable series.
|
||||
This release brings the first steps to modify and delete recurrent
|
||||
events, as well as many bugfixes.
|
||||
</p>
|
||||
<p>This release also updates translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-04-24" version="3.25.1" type="development">
|
||||
<description>
|
||||
<p>
|
||||
The GNOME Calendar team is proud to announce the 3.25.1 release of
|
||||
GNOME Calendar, the first release in the next (3.26) unstable series.
|
||||
This release contains most of the changes that landed for 3.24.1, plus
|
||||
a few translation changes.
|
||||
</p>
|
||||
<p>This release also updates translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-04-24" version="3.24.1" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
The GNOME Calendar team is proud to announce the 3.24.1 release of
|
||||
GNOME Calendar! This is a bugfix release that improves a lot the
|
||||
performance and stability of GNOME Calendar.
|
||||
</p>
|
||||
<p>This release also updates translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-03-20" version="3.24.0" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
The GNOME Calendar team is proud to announce the 3.24 release of
|
||||
GNOME Calendar! In this release, users will notice big changes,
|
||||
with the inclusion of the new Week view, various improvements to
|
||||
ranging from various bugfixes, improved keyboard flow for creating
|
||||
events using the quick-add popover, cleanups and much more.
|
||||
</p>
|
||||
<p>This release also updates translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-03-16" version="3.23.92" type="development">
|
||||
<description>
|
||||
<p>
|
||||
In this release, many bugs were fixed in the Week view. GNOME Calendar is
|
||||
now freeze until the next stable release.
|
||||
</p>
|
||||
<p>This release also updates translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-02-28" version="3.23.91.1" type="development">
|
||||
<description>
|
||||
<p>
|
||||
In this release, a couple of minor bugs were fixed. GNOME Calendar is
|
||||
gaining stability fixes until the next stable release now.
|
||||
</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-02-27" version="3.23.91" type="development">
|
||||
<description>
|
||||
<p>
|
||||
In this release, a couple of minor bugs were fixed. GNOME Calendar is
|
||||
gaining stability fixes until the next stable release now.
|
||||
</p>
|
||||
<p>This release also updates translations, and adds new translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2017-02-14" version="3.23.90" type="development">
|
||||
<description>
|
||||
<p>
|
||||
This release candidate for GNOME 3.24 adds many new features and improvements. The
|
||||
major highlight is the new Week view, besides the many stability and bugs that
|
||||
were fixed.
|
||||
</p>
|
||||
<ul>
|
||||
<li>The new Week view is here!</li>
|
||||
<li>GNOME Calendar now has an official Flatpak manifest</li>
|
||||
<li>Keyboard interaction was improved</li>
|
||||
</ul>
|
||||
<p>
|
||||
This release also updates translations, and adds new translations. GNOME Calendar
|
||||
if officially supported on more then 50 languages now.
|
||||
</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
<release date="2016-12-19" version="3.22.2" type="stable">
|
||||
<description>
|
||||
<p>
|
||||
This is the third stable release for GNOME Calendar 3.22, and focuses on
|
||||
bugfixes and stability issues.
|
||||
</p>
|
||||
<ul>
|
||||
<li>Online calendars are now downloaded offline and synchronized</li>
|
||||
<li>Properly draw the current month after scrolling</li>
|
||||
<li>Add an animation on the new month chooser widget</li>
|
||||
<li>Correctly escape strings</li>
|
||||
<li>Plug a memory leak</li>
|
||||
</ul>
|
||||
<p>This release also updates translations, and adds new translations.</p>
|
||||
<p>Thanks to all the contributors that worked on GNOME Calendar!</p>
|
||||
</description>
|
||||
</release>
|
||||
</releases>
|
||||
|
||||
<update_contact>gbsneto@gnome.org</update_contact>
|
||||
<translation type="gettext">gnome-calendar</translation>
|
||||
<launchable type="desktop-id">@appid@.desktop</launchable>
|
||||
|
||||
<recommends>
|
||||
<control>keyboard</control>
|
||||
<control>pointing</control>
|
||||
<control>touch</control>
|
||||
</recommends>
|
||||
<requires>
|
||||
<display_length compare="ge">360</display_length>
|
||||
</requires>
|
||||
|
||||
<content_rating type="oars-1.1" />
|
||||
</component>
|
||||
|
||||
@@ -229,22 +229,14 @@ gcal_application_show_about (GSimpleAction *simple,
|
||||
copyright = build_about_copyright (self);
|
||||
troubleshooting = build_system_information ();
|
||||
|
||||
about = g_object_new (ADW_TYPE_ABOUT_DIALOG,
|
||||
"application-name", _("Calendar"),
|
||||
"application-icon", APPLICATION_ID,
|
||||
"developer-name", _("The GNOME Project"),
|
||||
"version", VERSION,
|
||||
"copyright", copyright,
|
||||
"website", "https://apps.gnome.org/Calendar/",
|
||||
"issue-url", "https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues",
|
||||
"support-url", "https://discourse.gnome.org/tag/calendar",
|
||||
"license-type", GTK_LICENSE_GPL_3_0,
|
||||
"developers", developers,
|
||||
"designers", designers,
|
||||
"translator-credits", _("translator-credits"),
|
||||
"debug-info", troubleshooting,
|
||||
"debug-info-filename", "Calendar.txt",
|
||||
NULL);
|
||||
about = adw_about_dialog_new_from_appdata ("/org/gnome/calendar/appdata", MAJOR_VERSION);
|
||||
|
||||
adw_about_dialog_set_designers (ADW_ABOUT_DIALOG (about), designers);
|
||||
adw_about_dialog_set_copyright (ADW_ABOUT_DIALOG (about), copyright);
|
||||
adw_about_dialog_set_developers (ADW_ABOUT_DIALOG (about), developers);
|
||||
adw_about_dialog_set_debug_info (ADW_ABOUT_DIALOG (about), troubleshooting);
|
||||
adw_about_dialog_set_debug_info_filename (ADW_ABOUT_DIALOG (about), "Calendar.txt");
|
||||
adw_about_dialog_set_translator_credits (ADW_ABOUT_DIALOG (about), _("translator-credits"));
|
||||
|
||||
weather_service = gcal_context_get_weather_service (self->context);
|
||||
adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about),
|
||||
|
||||
@@ -64,6 +64,7 @@ calendar_incs = [
|
||||
###################
|
||||
|
||||
sources = files()
|
||||
subdir('appdata')
|
||||
subdir('core')
|
||||
subdir('gui')
|
||||
subdir('search')
|
||||
|
||||
Reference in New Issue
Block a user