AboutDialog.addLegalSection

void addLegalSection(string title, string copyright, gtk.types.License licenseType, string license = null)

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 propertyAboutDialog:copyright, propertyAboutDialog:license-type and propertyAboutDialog: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.");

Parameters

titlethe name of the section
copyrighta copyright string
licenseTypethe type of license
licensecustom license information