AboutDialog.newFromAppdata

Creates a new adw.about_dialog.AboutDialog using AppStream metadata.

This automatically sets the following properties with the following AppStream values:

  • propertyAboutDialog:application-icon is set from the <id>
  • propertyAboutDialog:application-name is set from the <name>
  • propertyAboutDialog:developer-name is set from the <name> within <developer>
  • propertyAboutDialog:version is set from the version of the latest release
  • propertyAboutDialog:website is set from the <url type="homepage">
  • propertyAboutDialog:support-url is set from the <url type="help">
  • propertyAboutDialog:issue-url is set from the <url type="bugtracker">
  • propertyAboutDialog:license-type is 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, propertyAboutDialog:release-notes-version is set to match it, while propertyAboutDialog:release-notes is set from the AppStream release description for that version.

class AboutDialog
static
newFromAppdata
(,
string releaseNotesVersion = null
)

Parameters

resourcePath string

The resource to use

releaseNotesVersion string

The version to retrieve release notes for

Return Value

Type: adw.about_dialog.AboutDialog