Constructor
AdapAboutWindownew_from_appdata
since: 1.4
Declaration [src]
GtkWidget*
adap_about_window_new_from_appdata (
const char* resource_path,
const char* release_notes_version
)
Description [src]
Creates a new AdapAboutWindow using AppStream metadata.
This automatically sets the following properties with the following AppStream values:
AdapAboutWindow:application-iconis set from the<id>AdapAboutWindow:application-nameis set from the<name>AdapAboutWindow:developer-nameis set from the<name>within<developer>AdapAboutWindow:versionis set from the version of the latest releaseAdapAboutWindow:websiteis set from the<url type="homepage">AdapAboutWindow:support-urlis set from the<url type="help">AdapAboutWindow:issue-urlis set from the<url type="bugtracker">AdapAboutWindow:license-typeis set from the<project_license>. If the license type retrieved from AppStream is not listed inGtkLicense, it will be set toGTK_LICENCE_CUSTOM.
If release_notes_version is not NULL,
AdapAboutWindow:release-notes-version is set to match it, while
AdapAboutWindow:release-notes is set from the AppStream release
description for that version.
Available since: 1.4
Parameters
resource_path-
Type:
const char*The resource to use.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. release_notes_version-
Type:
const char*The version to retrieve release notes for.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: GtkWidget
The newly created AdapAboutWindow.
| The data is owned by the called function. |