It derives from <GtkWindow>.
Displays information about a program.
The shown information includes the programs’ logo, name, copyright, website and license. It is also possible to give credits to the authors, documenters, translators and artists who have worked on the program.
An about dialog is typically opened when the user selects the
About option from the Help menu. All parts of the dialog
are optional.
About dialogs often contain links and email addresses.
<GtkAboutDialog> displays these as clickable
links. By default, it calls file-launcher:launch when a user clicks one. The behaviour
can be overridden with the about-dialog:activate-link signal.
To specify a person with an email address, use a string like Edgar
Allan Poe <edgar@poe.com>. To specify a website with a title, use a
string like GTK team https://www.gtk.org.
To make constructing an about dialog as convenient as possible, you can
use the function Gtk.show_about_dialog which constructs and shows
a dialog and keeps it around so that it can be shown again.
Note that GTK sets a default title of _("About %s") on the dialog
window (where %s is replaced by the name of the application, but
in order to ensure proper translation of the title, applications should
set the title property explicitly when constructing an about dialog, as
shown in the following example:
GFile *logo_file = g_file_new_for_path ("./logo.png");
GdkTexture *example_logo = gdk_texture_new_from_file (logo_file, NULL);
g_object_unref (logo_file);
gtk_show_about_dialog (NULL,
"program-name", "ExampleCode",
"logo", example_logo,
"title", _("About ExampleCode"),
NULL);
<GtkAboutDialog> supports the following
keyboard shortcuts:
<GtkAboutDialog> has a single CSS node with
the name window and style class .aboutdialog.
The people who contributed artwork to the program.
Each string may contain email addresses and URLs, which will be displayed as links.
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).
The authors of the program.
Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
Its value is a vector, each a string (or, to set it, a list), or
#f.
Set it with (set! (about-dialog:authors self) value).
Comments about the program.
This string is displayed in a label in the main dialog, thus it should be a short explanation of the main purpose of the program, not a detailed list of features.
Its value is a string, or #f.
Set it with (set! (about-dialog:comments self) value).
Copyright information for the program.
Its value is a string, or #f.
Set it with (set! (about-dialog:copyright self) value).
The people documenting the program.
Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
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).
The license of the program, as free-form text.
This string is displayed in a text view in a secondary dialog, therefore
it is fine to use a long multi-paragraph text. Note that the text is
only wrapped in the text view if the "wrap-license" property is set to
TRUE; otherwise the text itself must contain the intended
linebreaks.
When setting this property to a non-NULL value, the
about-dialog:license-type property is set to
Gtk.License.custom as a side effect.
The text may contain links in this format
<http://www.some.place/> and email references in the form
<mail-to@some.body>, and these will be converted into clickable
links.
Its value is a string, or #f.
Set it with (set! (about-dialog:license self) value).
The license of the program.
The <GtkAboutDialog> will automatically fill
out a standard disclaimer and link the user to the appropriate online
resource for the license text.
If Gtk.License.unknown is used, the link used will be the same
specified in the about-dialog:website property.
If Gtk.License.custom is used, the current contents of the
about-dialog:license property
are used.
For any other <GtkLicense> value, the contents of
the about-dialog:license
property are also set by this property as a side effect.
Its value is a <GtkLicense> (or, to set it, one of
its symbols).
Set it with (set! (about-dialog:license-type self) value).
A logo for the about box.
If it is NULL, the default window icon set with window:set-default-icon-name will be used.
Its value is a <GdkPaintable>, or #f.
Set it with (set! (about-dialog:logo self) value).
A named icon to use as the logo for the about box.
This property overrides the about-dialog:logo property.
Its value is a string, or #f.
Set it with (set! (about-dialog:logo-icon-name self) value).
The name of the program.
If this is not set, it defaults to the value returned by
get-application-name.
Its value is a string, or #f.
Set it with (set! (about-dialog:program-name self) value).
Information about the system on which the program is running.
This information is displayed in a separate page, therefore it is fine to use a long multi-paragraph text. Note that the text should contain the intended linebreaks.
The text may contain links in this format
<http://www.some.place/> and email references in the form
<mail-to@some.body>, and these will be converted into clickable
links.
Its value is a string, or #f.
Set it with (set! (about-dialog:system-information self) value).
Credits to the translators.
This string should be marked as translatable.
The string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
Its value is a string, or #f.
Set it with (set! (about-dialog:translator-credits self) value).
The version of the program.
Its value is a string, or #f.
Set it with (set! (about-dialog:version self) value).
The URL for the link to the website of the program.
This should be a string starting with http:// or https://.
Its value is a string, or #f.
Set it with (set! (about-dialog:website self) value).
The label for the link to the website of the program.
Its value is a string, or #f.
Set it with (set! (about-dialog:website-label self) value).
Whether to wrap the text in the license dialog.
Its value is a boolean.
Set it with (set! (about-dialog:wrap-license self) value).
Creates a new section in the "Credits" page.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a string.
The name of the section
Passed: a list or vector, each a string.
the people who belong to that section
Returns the names of the artists which are displayed in the credits page.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a vector, each a string.
A NULL-terminated string array containing the artists
Returns the names of the authors which are displayed in the credits page.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a vector, each a string.
A NULL-terminated string array containing the authors
Returns the comments string.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The comments
Returns the copyright string.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The copyright string
Returns the name of the documenters which are displayed in the credits page.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a vector, each a string.
A NULL-terminated string array containing the documenters
Returns the license information.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The license information
Retrieves the license type.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a <GtkLicense>.
a <GtkLicense> value
Returns the paintable displayed as logo in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a <GdkPaintable>, or #f.
the paintable displayed as logo or NULL if the logo is unset or
has been set via about-dialog:set-logo-icon-name
Returns the icon name displayed as logo in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
the icon name displayed as logo, or NULL if the logo has been set
via about-dialog:set-logo
Returns the program name displayed in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
the program name
Returns the system information that is shown in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
the system information
Returns the translator credits string which is displayed in the credits page.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The translator credits string
Returns the version string.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The version string
Returns the website URL.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The website URL
Returns the label used for the website link.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a string, or #f.
The label used for the website link
Returns whether the license text in the about dialog is automatically wrapped.
Passed: a <GtkAboutDialog>.
an about dialog
Returned: a boolean.
TRUE if the license text is wrapped
Creates a new <GtkAboutDialog>.
Returned: a <GtkWidget>.
a newly created <GtkAboutDialog>
Sets the names of the artists to be displayed in the "Credits" page.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a list or vector, each a string.
the authors of the artwork of the application
Sets the names of the authors which are displayed in the "Credits" page of the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a list or vector, each a string.
the authors of the application
Sets the comments string to display in the about dialog.
This should be a short string of one or two lines.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
a comments string
Sets the copyright string to display in the about dialog.
This should be a short string of one or two lines.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
the copyright string
Sets the names of the documenters which are displayed in the "Credits" page.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a list or vector, each a string.
the authors of the documentation of the application
Sets the license information to be displayed in the about dialog.
If license is NULL, the license page is hidden.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
the license information
Sets the license of the application showing the about dialog from a list of known licenses.
This function overrides the license set using about-dialog:set-license.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a <GtkLicense>, or one of its symbols.
the type of license
Sets the logo in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a <GdkPaintable>, or
#f.
Sets the icon name to be displayed as logo in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
an icon name
Sets the name to display in the about dialog.
If name is not set, the string returned by
get-application-name is used.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
the program name
Sets the system information to be displayed in the about dialog.
If system_information is NULL, the system information page
is hidden.
See about-dialog:system-information.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
system information
Sets the translator credits string which is displayed in the credits page.
The intended use for this string is to display the translator of the
language which is currently used in the user interface. Using
gettext(), a simple way to achieve that is to mark the string for
translation:
GtkWidget *about = gtk_about_dialog_new ();
gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about),
_("translator-credits"));
It is a good idea to use the customary msgid “translator-credits”
for this purpose, since translators will already know the purpose of
that msgid, and since <GtkAboutDialog>
will detect if “translator-credits” is untranslated and omit translator
credits.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
the translator credits
Sets the version string to display in the about dialog.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
the version string
Sets the URL to use for the website link.
Passed: a <GtkAboutDialog>.
an about dialog
Passed, or left out: a string, or #f.
a URL string starting with http://
Sets the label to be used for the website link.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a string.
the label used for the website link
Sets whether the license text in the about dialog should be automatically wrapped.
Passed: a <GtkAboutDialog>.
an about dialog
Passed: a boolean.
whether to wrap the license
Connect a handler with (connect object about-dialog:activate-link
handler). It is called as (handler self uri) ⇒ %return.
Emitted every time a URL is activated.
Applications may connect to it to override the default behaviour, which
is to call file-launcher:launch.
Passed: a <GtkAboutDialog>.
Passed: a string.
the URI that is activated
Returned: a boolean.
TRUE if the link has been activated