AboutWindow.from_appdata


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "1.4" ) ]
public AboutWindow.from_appdata (string resource_path, string? release_notes_version)

Creates a new `AdwAboutWindow` using AppStream metadata.

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

* [property@AboutWindow:application-icon] is set from the `<id>` * [property@AboutWindow:application-name] is set from the `<name>` * [property@AboutWindow:developer-name] is set from the `<developer_name>` * [property@AboutWindow:version] is set from the version of the latest release * [property@AboutWindow:website] is set from the `<url type="homepage">` * [property@AboutWindow:support-url] is set from the `<url type="help">` * [property@AboutWindow:issue-url] is set from the `<url type="bugtracker">` * [ property@AboutWindow:license-type] is set from the `<project_license>` If the license type retrieved from AppStream is not listed in [ enum@Gtk.License], it will be set to `GTK_LICENCE_CUSTOM`.

If release_notes_version is not `NULL`, [property@AboutWindow:release-notes-version] is set to match it, while [ property@AboutWindow:release-notes] is set from the AppStream release description for that version.

Parameters:

resource_path

The resource to use

release_notes_version

The version to retrieve release notes for

Returns:

the newly created `AdwAboutWindow`