Constructor

AdwAboutDialognew_from_appdata

Declaration [src]

AdwDialog*
adw_about_dialog_new_from_appdata (
  const char* resource_path,
  const char* release_notes_version
)

Description [src]

Creates a new AdwAboutDialog using AppStream metadata.

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

If release_notes_version is not NULL, AdwAboutDialog:release-notes-version is set to match it, while AdwAboutDialog:release-notes is set from the AppStream release description for that version.

Available since:1.5

Parameters

resource_path 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 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

Returns: AdwDialog
 

The newly created AdwAboutDialog

 The data is owned by the called function.