1.1 <AdwAboutDialog>

Class: <AdwAboutDialog>

It derives from <AdwDialog>.

A dialog showing information about the application.

an about dialog is typically opened when the user activates the About … item in the application’s primary menu. All parts of the dialog are optional.

Main page

<AdwAboutDialog> prominently displays the application’s icon, name, developer name and version. They can be set with the AboutDialog:application-icon, AboutDialog:application-name, AboutDialog:developer-name and AboutDialog:version respectively.

What’s New

<AdwAboutDialog> provides a way for applications to display their release notes, set with the AboutDialog:release-notes property.

Release notes are formatted the same way as AppStream descriptions.

The supported formatting options are:

  • Paragraph (<p>)
  • Ordered list (<ol>), with list items (<li>)
  • Unordered list (<ul>), with list items (<li>)

Within paragraphs and list items, emphasis (<em>) and inline code (<code>) text styles are supported. The emphasis is rendered in italic, while inline code is shown in a monospaced font.

Any text outside paragraphs or list items is ignored.

Nested lists are not supported.

Only one version can be shown at a time. By default, the displayed version number matches AboutDialog:version. Use AboutDialog:release-notes-version to override it.

Details

The Details page displays the application comments and links.

The comments can be set with the AboutDialog:comments property. Unlike about-dialog:comments, this string can be long and detailed. It can also contain links and Pango markup.

To set the application website, use AboutDialog:website. To add extra links below the website, use AboutDialog.add_link.

If the Details page doesn’t have any other content besides website, the website will be displayed on the main page instead.

Troubleshooting

<AdwAboutDialog> displays the following two links on the main page:

  • Support Questions, set with the AboutDialog:support-url property,
  • Report an Issue, set with the AboutDialog:issue-url property.

Additionally, applications can provide debugging information. It will be shown separately on the Troubleshooting page. Use the AboutDialog:debug-info property to specify it.

It’s intended to be attached to issue reports when reporting issues against the application. As such, it cannot contain markup or links.

<AdwAboutDialog> provides a quick way to save debug information to a file. When saving, AboutDialog:debug-info-filename would be used as the suggested filename.

Credits and Acknowledgements

The Credits page has the following default sections:

  • Developers, set with the AboutDialog:developers property,
  • Designers, set with the AboutDialog:designers property,
  • Artists, set with the AboutDialog:artists property,
  • Documenters, set with the AboutDialog:documenters property,
  • Translators, set with the AboutDialog:translator-credits property.

When setting translator credits, use the strings "translator-credits" or "translator_credits" and mark them as translatable.

The default sections that don’t contain any names won’t be displayed.

The Credits page can also contain an arbitrary number of extra sections below the default ones. Use AboutDialog.add_credit_section to add them.

The Acknowledgements page can be used to acknowledge additional people and organizations for their non-development contributions. Use AboutDialog.add_acknowledgement_section to add sections to it. For example, it can be used to list backers in a crowdfunded project or to give special thanks.

Each of the people or organizations can have an email address or a website specified. To add a email address, use a string like Edgar Allan Poe <edgar@poe.com>. To specify a website with a title, use a string like The GNOME Project https://www.gnome.org:

The Legal page displays the copyright and licensing information for the application and other modules.

The copyright string is set with the AboutDialog:copyright property and should be a short string of one or two lines, for example: © 2022 Example.

Licensing information can be quickly set from a list of known licenses with the AboutDialog:license-type property. If the application’s license is not in the list, AboutDialog:license can be used instead.

To add information about other modules, such as application dependencies or data, use AboutDialog.add_legal_section.

Other applications

<AdwAboutDialog> can show links to your other apps at the end of the main page. To add them, use AboutDialog.add_other_app.

Constructing

To make constructing an <AdwAboutDialog> as convenient as possible, you can use the function show_about_dialog which constructs and shows a dialog.

static void
show_about (GtkApplication *app)
{
  const char *developers[] = {
    "Angela Avery",
    NULL
  };

  const char *designers[] = {
    "GNOME Design Team",
    NULL
  };

  adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
                         "application-name", _("Example"),
                         "application-icon", "org.example.App",
                         "version", "1.2.3",
                         "copyright", "© 2022 Angela Avery",
                         "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
                         "license-type", GTK_LICENSE_GPL_3_0,
                         "developers", developers,
                         "designers", designers,
                         "translator-credits", _("translator-credits"),
                         NULL);
}

CSS nodes

<AdwAboutDialog> has a main CSS node with the name dialog and the style class .about.

Properties

Property: about-dialog:appdata-resource-path self

The path to the Appstream metadata resource.

If provided, the dialog will be constructed from it.

See AboutDialog.new_from_appdata.

If AboutDialog:release-notes-version is set, release notes will be set from the AppStream release description for that version.

Its value is a string, or #f.

It can only be set when the object is made, with #:appdata-resource-path.

Property: about-dialog:application-icon self

The name of the application icon.

The icon is displayed at the top of the main page.

Its value is a string, or #f.

Set it with (set! (about-dialog:application-icon self) value).

Property: about-dialog:application-name self

The name of the application.

The name is displayed at the top of the main page.

Its value is a string, or #f.

Set it with (set! (about-dialog:application-name self) value).

Property: about-dialog:artists self

The list of artists of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section

Its value is a vector, each a string (or, to set it, a list), or #f.

Set it with (set! (about-dialog:artists self) value).

Property: about-dialog:comments self

The comments about the application.

Comments will be shown on the Details page, above links.

Unlike about-dialog:comments, this string can be long and detailed. It can also contain links and Pango markup.

Its value is a string, or #f.

Set it with (set! (about-dialog:comments self) value).

Property: about-dialog:copyright self

The copyright information.

This should be a short string of one or two lines, for example: © 2022 Example.

The copyright information will be displayed on the Legal page, above the application license.

AboutDialog.add_legal_section can be used to add copyright information for the application dependencies or other components.

Its value is a string, or #f.

Set it with (set! (about-dialog:copyright self) value).

Property: about-dialog:debug-info self

The debug information.

Debug information will be shown on the Troubleshooting page. It’s intended to be attached to issue reports when reporting issues against the application.

<AdwAboutDialog> provides a quick way to save debug information to a file. When saving, AboutDialog:debug-info-filename would be used as the suggested filename.

Debug information cannot contain markup or links.

Its value is a string, or #f.

Set it with (set! (about-dialog:debug-info self) value).

Property: about-dialog:debug-info-filename self

The debug information filename.

It will be used as the suggested filename when saving debug information to a file.

See AboutDialog:debug-info.

Its value is a string, or #f.

Set it with (set! (about-dialog:debug-info-filename self) value).

Property: about-dialog:designers self

The list of designers of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section

Its value is a vector, each a string (or, to set it, a list), or #f.

Set it with (set! (about-dialog:designers self) value).

Property: about-dialog:developer-name self

The developer name.

The developer name is displayed on the main page, under the application name.

If the application is developed by multiple people, the developer name can be set to values like "AppName team", "AppName developers" or "The AppName project", and the individual contributors can be listed on the Credits page, with AboutDialog:developers and related properties.

Its value is a string, or #f.

Set it with (set! (about-dialog:developer-name self) value).

Property: about-dialog:developers self

The list of developers of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section

Its value is a vector, each a string (or, to set it, a list), or #f.

Set it with (set! (about-dialog:developers self) value).

Property: about-dialog:documenters self

The list of documenters of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section

Its value is a vector, each a string (or, to set it, a list), or #f.

Set it with (set! (about-dialog:documenters self) value).

Property: about-dialog:issue-url self

The URL for the application’s issue tracker.

The issue tracker link is displayed on the main page.

Its value is a string, or #f.

Set it with (set! (about-dialog:issue-url self) value).

Property: about-dialog:license self

The license text.

This can be used to set a custom text for the license if it can’t be set via AboutDialog:license-type.

When set, AboutDialog:license-type will be set to Gtk.License.custom.

The license text will be displayed on the Legal page, below the copyright information.

License text can contain Pango markup and links.

AboutDialog.add_legal_section can be used to add license information for the application dependencies or other components.

Its value is a string, or #f.

Set it with (set! (about-dialog:license self) value).

Property: about-dialog:license-type self

The license type.

Allows to set the application’s license froma list of known licenses.

If the application’s license is not in the list, AboutDialog:license can be used instead. The license type will be automatically set to Gtk.License.custom in that case.

If set to Gtk.License.unknown, no information will be displayed.

If the license type is different from Gtk.License.custom. AboutDialog:license will be cleared out.

The license description will be displayed on the Legal page, below the copyright information.

AboutDialog.add_legal_section can be used to add license information for the application dependencies or other components.

Its value is a <GtkLicense> (or, to set it, one of its symbols).

Set it with (set! (about-dialog:license-type self) value).

Property: about-dialog:release-notes self

The release notes of the application.

Release notes are displayed on the the What’s New page.

Release notes are formatted the same way as AppStream descriptions.

The supported formatting options are:

  • Paragraph (<p>)
  • Ordered list (<ol>), with list items (<li>)
  • Unordered list (<ul>), with list items (<li>)

Within paragraphs and list items, emphasis (<em>) and inline code (<code>) text styles are supported. The emphasis is rendered in italic, while inline code is shown in a monospaced font.

Any text outside paragraphs or list items is ignored.

Nested lists are not supported.

<AdwAboutDialog> displays the version above the release notes. If set, the AboutDialog:release-notes-version of the property will be used as the version; otherwise, AboutDialog:version is used.

Its value is a string, or #f.

Set it with (set! (about-dialog:release-notes self) value).

Property: about-dialog:release-notes-version self

The version described by the application’s release notes.

The release notes version is displayed on the What’s New page, above the release notes.

If not set, AboutDialog:version will be used instead.

For example, an application with the current version 2.0.2 might want to keep the release notes from 2.0.0, and set the release notes version accordingly.

See AboutDialog:release-notes.

Its value is a string, or #f.

Set it with (set! (about-dialog:release-notes-version self) value).

Property: about-dialog:support-url self

The URL of the application’s support page.

The support page link is displayed on the main page.

Its value is a string, or #f.

Set it with (set! (about-dialog:support-url self) value).

Property: about-dialog:translator-credits self

The translator credits string.

It will be displayed on the Credits page.

This string should be "translator-credits" or "translator_credits" and should be marked as translatable.

The string may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section

Its value is a string, or #f.

Set it with (set! (about-dialog:translator-credits self) value).

Property: about-dialog:version self

The version of the application.

The version is displayed on the main page.

If AboutDialog:release-notes-version is not set, the version will also be displayed above the release notes on the What’s New page.

Its value is a string, or #f.

Set it with (set! (about-dialog:version self) value).

Property: about-dialog:website self

The URL of the application’s website.

Website is displayed on the Details page, below comments, or on the main page if the Details page doesn’t have any other content.

Applications can add other links below, see AboutDialog.add_link.

Its value is a string, or #f.

Set it with (set! (about-dialog:website self) value).

Procedures

Method: about-dialog:add-acknowledgement-section self name people
Method: add-acknowledgement-section self name people

Adds a section to the Acknowledgements page.

This can be used to acknowledge additional people and organizations for their non-development contributions - for example, backers in a crowdfunded project.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
self

Passed: a <AdwAboutDialog>.

an about dialog

name

Passed: a string, or #f.

the section name

people

Passed: a list or vector, each a string.

the list of names

Method: about-dialog:add-credit-section self name people
Method: add-credit-section self name people

Adds an extra section to the Credits page.

Extra sections are displayed below the standard categories.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

name

Passed: a string, or #f.

the section name

people

Passed: a list or vector, each a string.

the list of names

Method: about-dialog:add-legal-section self title copyright license-type [license]
Method: add-legal-section self title copyright license-type [license]

Adds an extra section to the Legal page.

Extra sections will be displayed below the application’s own information.

The parameters copyright, license-type and license will be used to present the it the same way as AboutDialog:copyright, AboutDialog:license-type and AboutDialog:license are for the application’s own information.

See those properties for more details.

This can be useful to attribute the application dependencies or data.

Examples:

adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about),
                                    _("Copyright and a known license"),
                                    "© 2022 Example",
                                    GTK_LICENSE_LGPL_2_1,
                                    NULL);

adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about),
                                    _("Copyright and custom license"),
                                    "© 2022 Example",
                                    GTK_LICENSE_CUSTOM,
                                    "Custom license text");

adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about),
                                    _("Copyright only"),
                                    "© 2022 Example",
                                    GTK_LICENSE_UNKNOWN,
                                    NULL);

adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about),
                                    _("Custom license only"),
                                    NULL,
                                    GTK_LICENSE_CUSTOM,
                                    "Something completely custom here.");
self

Passed: a <AdwAboutDialog>.

an about dialog

title

Passed: a string.

the name of the section

copyright

Passed: a string, or #f.

a copyright string

license-type

Passed: a <GtkLicense>, or one of its symbols.

the type of license

license

Passed, or left out: a string, or #f.

custom license information

Adds an extra link to the Details page.

Extra links are displayed under the comment and website.

Underlines in title will be interpreted as indicating a mnemonic.

See AboutDialog:website.

self

Passed: a <AdwAboutDialog>.

an about dialog

title

Passed: a string.

the link title

url

Passed: a string.

the link URL

Method: about-dialog:add-other-app self appid name summary
Method: add-other-app self appid name summary

Adds another application to self.

The application will be displayed at the bottom of the main page, in a separate section. Each added application will be presented as a row with title and summary, as well as an icon with the name appid. Clicking the row will show appid in the software center app.

This can be used to link to your other applications if you have multiple.

Example:

adw_about_dialog_add_other_app (ADW_ABOUT_DIALOG (about),
                                "org.gnome.Boxes",
                                _("Boxes"),
                                _("Virtualization made simple"));
self

Passed: a <AdwAboutDialog>.

an about dialog

appid

Passed: a string.

the application ID

name

Passed: a string.

the application name

summary

Passed: a string.

the application summary

Method: about-dialog:get-appdata-resource-path self ⇒ %return
Method: get-appdata-resource-path self ⇒ %return

Gets the AppStream metadata resource path for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string, or #f.

the resource path

Method: about-dialog:get-application-icon self ⇒ %return
Method: get-application-icon self ⇒ %return

Gets the name of the application icon for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the application icon name

Method: about-dialog:get-application-name self ⇒ %return
Method: get-application-name self ⇒ %return

Gets the application name for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the application name

Method: about-dialog:get-artists self ⇒ %return
Method: get-artists self ⇒ %return

Gets the list of artists of the application.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a vector, each a string, or #f.

The list of artists

Method: about-dialog:get-comments self ⇒ %return
Method: get-comments self ⇒ %return

Gets the comments about the application.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the comments

Method: about-dialog:get-copyright self ⇒ %return
Method: get-copyright self ⇒ %return

Gets the copyright information for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the copyright information

Method: about-dialog:get-debug-info self ⇒ %return
Method: get-debug-info self ⇒ %return

Gets the debug information for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the debug information

Method: about-dialog:get-debug-info-filename self ⇒ %return
Method: get-debug-info-filename self ⇒ %return

Gets the debug information filename for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the debug information filename

Method: about-dialog:get-designers self ⇒ %return
Method: get-designers self ⇒ %return

Gets the list of designers of the application.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a vector, each a string, or #f.

The list of designers

Method: about-dialog:get-developer-name self ⇒ %return
Method: get-developer-name self ⇒ %return

Gets the developer name for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the developer_name

Method: about-dialog:get-developers self ⇒ %return
Method: get-developers self ⇒ %return

Gets the list of developers of the application.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a vector, each a string, or #f.

The list of developers

Method: about-dialog:get-documenters self ⇒ %return
Method: get-documenters self ⇒ %return

Gets the list of documenters of the application.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a vector, each a string, or #f.

The list of documenters

Method: about-dialog:get-issue-url self ⇒ %return
Method: get-issue-url self ⇒ %return

Gets the issue tracker URL for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the issue tracker URL

Method: about-dialog:get-license self ⇒ %return
Method: get-license self ⇒ %return

Gets the license for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the license

Method: about-dialog:get-license-type self ⇒ %return
Method: get-license-type self ⇒ %return

Gets the license type for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a <GtkLicense>.

the license type

Method: about-dialog:get-release-notes self ⇒ %return
Method: get-release-notes self ⇒ %return

Gets the release notes for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the release notes

Method: about-dialog:get-release-notes-version self ⇒ %return
Method: get-release-notes-version self ⇒ %return

Gets the version described by the application’s release notes.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the release notes version

Method: about-dialog:get-support-url self ⇒ %return
Method: get-support-url self ⇒ %return

Gets the URL of the support page for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the support page URL

Method: about-dialog:get-translator-credits self ⇒ %return
Method: get-translator-credits self ⇒ %return

Gets the translator credits string.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

The translator credits string

Method: about-dialog:get-version self ⇒ %return
Method: get-version self ⇒ %return

Gets the version for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the version

Method: about-dialog:get-website self ⇒ %return
Method: get-website self ⇒ %return

Gets the application website URL for self.

self

Passed: a <AdwAboutDialog>.

an about dialog

%return

Returned: a string.

the website URL

Procedure: about-dialog:new ⇒ %return

Creates a new <AdwAboutDialog>.

%return

Returned: a <AdwDialog>.

the newly created <AdwAboutDialog>

Procedure: about-dialog:new-from-appdata resource-path [release-notes-version] ⇒ %return

Creates a new <AdwAboutDialog> using AppStream metadata.

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

  • AboutDialog:application-icon is set from the <id>
  • AboutDialog:application-name is set from the <name>
  • AboutDialog:developer-name is set from the <name> within <developer>
  • AboutDialog:version is set from the version of the latest release
  • AboutDialog:website is set from the <url type="homepage">
  • AboutDialog:support-url is set from the <url type="help">
  • AboutDialog:issue-url is set from the <url type="bugtracker">
  • AboutDialog:license-type is set from the <project_license>. If the license type retrieved from AppStream is not listed in <GtkLicense>, it will be set to Gtk.License.custom.

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

resource-path

Passed: a string.

The resource to use

release-notes-version

Passed, or left out: a string, or #f.

The version to retrieve release notes for

%return

Returned: a <AdwDialog>.

the newly created <AdwAboutDialog>

Method: about-dialog:set-application-icon self application-icon
Method: set-application-icon self application-icon

Sets the name of the application icon for self.

The icon is displayed at the top of the main page.

self

Passed: a <AdwAboutDialog>.

an about dialog

application-icon

Passed: a string.

the application icon name

Method: about-dialog:set-application-name self application-name
Method: set-application-name self application-name

Sets the application name for self.

The name is displayed at the top of the main page.

self

Passed: a <AdwAboutDialog>.

an about dialog

application-name

Passed: a string.

the application name

Method: about-dialog:set-artists self [artists]
Method: set-artists self [artists]

Sets the list of artists of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

artists

Passed, or left out: a list or vector, each a string, or #f.

the list of artists

Method: about-dialog:set-comments self comments
Method: set-comments self comments

Sets the comments about the application.

Comments will be shown on the Details page, above links.

Unlike about-dialog:comments, this string can be long and detailed. It can also contain links and Pango markup.

self

Passed: a <AdwAboutDialog>.

an about dialog

comments

Passed: a string.

the comments

Method: about-dialog:set-copyright self copyright
Method: set-copyright self copyright

Sets the copyright information for self.

This should be a short string of one or two lines, for example: © 2022 Example.

The copyright information will be displayed on the Legal page, before the application license.

AboutDialog.add_legal_section can be used to add copyright information for the application dependencies or other components.

self

Passed: a <AdwAboutDialog>.

an about dialog

copyright

Passed: a string.

the copyright information

Method: about-dialog:set-debug-info self debug-info
Method: set-debug-info self debug-info

Sets the debug information for self.

Debug information will be shown on the Troubleshooting page. It’s intended to be attached to issue reports when reporting issues against the application.

<AdwAboutDialog> provides a quick way to save debug information to a file. When saving, AboutDialog:debug-info-filename would be used as the suggested filename.

Debug information cannot contain markup or links.

self

Passed: a <AdwAboutDialog>.

an about dialog

debug-info

Passed: a string.

the debug information

Method: about-dialog:set-debug-info-filename self filename
Method: set-debug-info-filename self filename

Sets the debug information filename for self.

It will be used as the suggested filename when saving debug information to a file.

See AboutDialog:debug-info.

self

Passed: a <AdwAboutDialog>.

an about dialog

filename

Passed: a string.

the debug info filename

Method: about-dialog:set-designers self [designers]
Method: set-designers self [designers]

Sets the list of designers of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

designers

Passed, or left out: a list or vector, each a string, or #f.

the list of designers

Method: about-dialog:set-developer-name self developer-name
Method: set-developer-name self developer-name

Sets the developer name for self.

The developer name is displayed on the main page, under the application name.

If the application is developed by multiple people, the developer name can be set to values like "AppName team", "AppName developers" or "The AppName project", and the individual contributors can be listed on the Credits page, with AboutDialog:developers and related properties.

self

Passed: a <AdwAboutDialog>.

an about dialog

developer-name

Passed: a string.

the developer name

Method: about-dialog:set-developers self [developers]
Method: set-developers self [developers]

Sets the list of developers of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

developers

Passed, or left out: a list or vector, each a string, or #f.

the list of developers

Method: about-dialog:set-documenters self [documenters]
Method: set-documenters self [documenters]

Sets the list of documenters of the application.

It will be displayed on the Credits page.

Each name may contain email addresses and URLs, see the introduction for more details.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:translator-credits
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

documenters

Passed, or left out: a list or vector, each a string, or #f.

the list of documenters

Method: about-dialog:set-issue-url self issue-url
Method: set-issue-url self issue-url

Sets the issue tracker URL for self.

The issue tracker link is displayed on the main page.

self

Passed: a <AdwAboutDialog>.

an about dialog

issue-url

Passed: a string.

the issue tracker URL

Method: about-dialog:set-license self license
Method: set-license self license

Sets the license for self.

This can be used to set a custom text for the license if it can’t be set via AboutDialog:license-type.

When set, AboutDialog:license-type will be set to Gtk.License.custom.

The license text will be displayed on the Legal page, below the copyright information.

License text can contain Pango markup and links.

AboutDialog.add_legal_section can be used to add license information for the application dependencies or other components.

self

Passed: a <AdwAboutDialog>.

an about dialog

license

Passed: a string.

the license

Method: about-dialog:set-license-type self license-type
Method: set-license-type self license-type

Sets the license for self from a list of known licenses.

If the application’s license is not in the list, AboutDialog:license can be used instead. The license type will be automatically set to Gtk.License.custom in that case.

If license-type is Gtk.License.unknown, no information will be displayed.

If license-type is different from Gtk.License.custom. AboutDialog:license will be cleared out.

The license description will be displayed on the Legal page, below the copyright information.

AboutDialog.add_legal_section can be used to add license information for the application dependencies or other components.

self

Passed: a <AdwAboutDialog>.

an about dialog

license-type

Passed: a <GtkLicense>, or one of its symbols.

the license type

Method: about-dialog:set-release-notes self release-notes
Method: set-release-notes self release-notes

Sets the release notes for self.

Release notes are displayed on the the What’s New page.

Release notes are formatted the same way as AppStream descriptions.

The supported formatting options are:

  • Paragraph (<p>)
  • Ordered list (<ol>), with list items (<li>)
  • Unordered list (<ul>), with list items (<li>)

Within paragraphs and list items, emphasis (<em>) and inline code (<code>) text styles are supported. The emphasis is rendered in italic, while inline code is shown in a monospaced font.

Any text outside paragraphs or list items is ignored.

Nested lists are not supported.

<AdwAboutDialog> displays the version above the release notes. If set, the AboutDialog:release-notes-version of the property will be used as the version; otherwise, AboutDialog:version is used.

self

Passed: a <AdwAboutDialog>.

an about dialog

release-notes

Passed: a string.

the release notes

Method: about-dialog:set-release-notes-version self version
Method: set-release-notes-version self version

Sets the version described by the application’s release notes.

The release notes version is displayed on the What’s New page, above the release notes.

If not set, AboutDialog:version will be used instead.

For example, an application with the current version 2.0.2 might want to keep the release notes from 2.0.0, and set the release notes version accordingly.

See AboutDialog:release-notes.

self

Passed: a <AdwAboutDialog>.

an about dialog

version

Passed: a string.

the release notes version

Method: about-dialog:set-support-url self support-url
Method: set-support-url self support-url

Sets the URL of the support page for self.

The support page link is displayed on the main page.

self

Passed: a <AdwAboutDialog>.

an about dialog

support-url

Passed: a string.

the support page URL

Method: about-dialog:set-translator-credits self translator-credits
Method: set-translator-credits self translator-credits

Sets the translator credits string.

It will be displayed on the Credits page.

This string should be "translator-credits" or "translator_credits" and should be marked as translatable.

The string may contain email addresses and URLs, see the introduction for more details. When there is more than one translator, they must be separated by a newline in the same string.

See also:

  • AboutDialog:developers
  • AboutDialog:designers
  • AboutDialog:artists
  • AboutDialog:documenters
  • AboutDialog.add_credit_section
  • AboutDialog.add_acknowledgement_section
self

Passed: a <AdwAboutDialog>.

an about dialog

translator-credits

Passed: a string.

the translator credits

Method: about-dialog:set-version self version
Method: set-version self version

Sets the version for self.

The version is displayed on the main page.

If AboutDialog:release-notes-version is not set, the version will also be displayed above the release notes on the What’s New page.

self

Passed: a <AdwAboutDialog>.

an about dialog

version

Passed: a string.

the version

Method: about-dialog:set-website self website
Method: set-website self website

Sets the application website URL for self.

Website is displayed on the Details page, below comments, or on the main page if the Details page doesn’t have any other content.

Applications can add other links below, see AboutDialog.add_link.

self

Passed: a <AdwAboutDialog>.

an about dialog

website

Passed: a string.

the website URL

Signals

Connect a handler with (connect object about-dialog:activate-link handler). It is called as (handler self uri) ⇒ %return.

Emitted when a URL is activated.

Applications may connect to it to override the default behavior, which is to call Gtk.show_uri.

self

Passed: a <AdwAboutDialog>.

uri

Passed: a string.

the URI to activate

%return

Returned: a boolean.

TRUE if the link has been activated