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:
- adw.about_window.AboutWindow.applicationIcon is set from the
<id> - adw.about_window.AboutWindow.applicationName is set from the
<name> - adw.about_window.AboutWindow.developerName is set from the
<name>within<developer> - adw.about_window.AboutWindow.version_ is set from the version of the latest release
- adw.about_window.AboutWindow.website is set from the
<url type="homepage"> - adw.about_window.AboutWindow.supportUrl is set from the
<url type="help"> - adw.about_window.AboutWindow.issueUrl is set from the
<url type="bugtracker"> - adw.about_window.AboutWindow.licenseType is set from the
<project_license>. If the license type retrieved from AppStream is not listed in gtk.types.License, it will be set toGTK_LICENCE_CUSTOM.
If release_notes_version is not NULL, adw.about_window.AboutWindow.releaseNotesVersion is set to match it, while adw.about_window.AboutWindow.releaseNotes 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