AboutWindow.newFromAppdata
adw.about_window.AboutWindow newFromAppdata(string resourcePath, string releaseNotesVersion = null)Creates a new [adw.about_window.AboutWindow] using AppStream metadata.
This automatically sets the following properties with the following AppStream values:
propertyAboutWindow:application-iconis set from the<id>propertyAboutWindow:application-nameis set from the<name>propertyAboutWindow:developer-nameis set from the<name>within
<developer>
propertyAboutWindow:versionis set from the version of the latest releasepropertyAboutWindow:websiteis set from the<url type="homepage">propertyAboutWindow:support-urlis set from the<url type="help">propertyAboutWindow:issue-urlis set from the<url type="bugtracker">propertyAboutWindow:license-typeis set from the<project_license>.
If the license type retrieved from AppStream is not listed in [gtk.types.License], it will be set to GTK_LICENCE_CUSTOM.
If release_notes_version is not NULL, propertyAboutWindow:release-notes-version is set to match it, while propertyAboutWindow:release-notes is set from the AppStream release description for that version.
Parameters
resourcePath | The resource to use |
releaseNotesVersion | The version to retrieve release notes for |
Returns
the newly created [adw.about_window.AboutWindow]