Class AboutDialog
- All Implemented Interfaces:
Proxy
,Accessible
,Buildable
,ConstraintTarget
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 Gtk.AboutDialog: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 addLink(java.lang.String, java.lang.String)
.
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 addCreditSection(java.lang.String, java.lang.String[])
to add them.
The Acknowledgements page can be used to acknowledge additional people and
organizations for their non-development contributions. Use
addAcknowledgementSection(java.lang.String, java.lang.String[])
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
:
Legal
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 addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)
.
Constructing
To make constructing an AdwAboutDialog
as convenient as possible, you can
use the function Adw.showAboutDialog(org.gnome.gtk.Widget, java.lang.String, java.lang.Object...)
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
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
Functional interface declaration of theActivateLinkCallback
callback.static class
AboutDialog.Builder<B extends AboutDialog.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.Nested classes/interfaces inherited from class org.gnome.adw.Dialog
Dialog.CloseAttemptCallback, Dialog.ClosedCallback, Dialog.DialogClass
Nested classes/interfaces inherited from class org.gnome.gtk.Widget
Widget.DestroyCallback, Widget.DirectionChangedCallback, Widget.HideCallback, Widget.KeynavFailedCallback, Widget.MapCallback, Widget.MnemonicActivateCallback, Widget.MoveFocusCallback, Widget.QueryTooltipCallback, Widget.RealizeCallback, Widget.ShowCallback, Widget.StateFlagsChangedCallback, Widget.UnmapCallback, Widget.UnrealizeCallback, Widget.WidgetClass, Widget.WidgetImpl
Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
Nested classes/interfaces inherited from interface org.gnome.gtk.Accessible
Accessible.AccessibleImpl, Accessible.AccessibleInterface
Nested classes/interfaces inherited from interface org.gnome.gtk.Buildable
Buildable.BuildableIface, Buildable.BuildableImpl
Nested classes/interfaces inherited from interface org.gnome.gtk.ConstraintTarget
ConstraintTarget.ConstraintTargetImpl, ConstraintTarget.ConstraintTargetInterface
-
Constructor Summary
ConstructorDescriptionCreates a newAdwAboutDialog
.AboutDialog
(MemorySegment address) Create a AboutDialog proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAcknowledgementSection
(@Nullable String name, String[] people) Adds a section to the Acknowledgements page.void
addCreditSection
(@Nullable String name, String[] people) Adds an extra section to the Credits page.void
addLegalSection
(String title, @Nullable String copyright, License licenseType, @Nullable String license) Adds an extra section to the Legal page.void
Adds an extra link to the Details page.protected AboutDialog
asParent()
Returns this instance as if it were its parent type.static AboutDialog.Builder
<? extends AboutDialog.Builder> builder()
AAboutDialog.Builder
object constructs aAboutDialog
with the specified properties.boolean
emitActivateLink
(String uri) Emits the "activate-link" signal.static AboutDialog
fromAppdata
(String resourcePath, @Nullable String releaseNotesVersion) Creates a newAdwAboutDialog
using AppStream metadata.Gets the name of the application icon for this AboutDialog.Gets the application name for this AboutDialog.String[]
Gets the list of artists of the application.Gets the comments about the application.Gets the copyright information for this AboutDialog.Gets the debug information for this AboutDialog.Gets the debug information filename for this AboutDialog.String[]
Gets the list of designers of the application.Gets the developer name for this AboutDialog.String[]
Gets the list of developers of the application.String[]
Gets the list of documenters of the application.Gets the issue tracker URL for this AboutDialog.Gets the license for this AboutDialog.Gets the license type for this AboutDialog.Gets the release notes for this AboutDialog.Gets the version described by the application's release notes.Gets the URL of the support page for this AboutDialog.Gets the translator credits string.static Type
getType()
Get the GType of the AboutDialog classGets the version for this AboutDialog.Gets the application website URL for this AboutDialog.Emitted when a URL is activated.void
setApplicationIcon
(String applicationIcon) Sets the name of the application icon for this AboutDialog.void
setApplicationName
(String applicationName) Sets the application name for this AboutDialog.void
setArtists
(@Nullable String[] artists) Sets the list of artists of the application.void
setComments
(String comments) Sets the comments about the application.void
setCopyright
(String copyright) Sets the copyright information for this AboutDialog.void
setDebugInfo
(String debugInfo) Sets the debug information for this AboutDialog.void
setDebugInfoFilename
(String filename) Sets the debug information filename for this AboutDialog.void
setDesigners
(@Nullable String[] designers) Sets the list of designers of the application.void
setDeveloperName
(String developerName) Sets the developer name for this AboutDialog.void
setDevelopers
(@Nullable String[] developers) Sets the list of developers of the application.void
setDocumenters
(@Nullable String[] documenters) Sets the list of documenters of the application.void
setIssueUrl
(String issueUrl) Sets the issue tracker URL for this AboutDialog.void
setLicense
(String license) Sets the license for this AboutDialog.void
setLicenseType
(License licenseType) Sets the license for this AboutDialog from a list of known licenses.void
setReleaseNotes
(String releaseNotes) Sets the release notes for this AboutDialog.void
setReleaseNotesVersion
(String version) Sets the version described by the application's release notes.void
setSupportUrl
(String supportUrl) Sets the URL of the support page for this AboutDialog.void
setTranslatorCredits
(String translatorCredits) Sets the translator credits string.void
setVersion
(String version) Sets the version for this AboutDialog.void
setWebsite
(String website) Sets the application website URL for this AboutDialog.Methods inherited from class org.gnome.adw.Dialog
addBreakpoint, close, closeAttempt, closed, emitCloseAttempt, emitClosed, forceClose, getCanClose, getChild, getContentHeight, getContentWidth, getCurrentBreakpoint, getDefaultWidget, getFocus, getFollowsContentSize, getMemoryLayout, getPresentationMode, getTitle, onCloseAttempt, onClosed, present, setCanClose, setChild, setContentHeight, setContentWidth, setDefaultWidget, setFocus, setFollowsContentSize, setPresentationMode, setTitle
Methods inherited from class org.gnome.gtk.Widget
actionSetEnabled, activateActionIfExists, activateDefault, activateWidget, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, childFocus, computeBounds, computeExpand, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, cssChanged, directionChanged, disposeTemplate, dragCheckThreshold, emitDestroy, emitDirectionChanged, emitHide, emitKeynavFailed, emitMap, emitMnemonicActivate, emitMoveFocus, emitQueryTooltip, emitRealize, emitShow, emitStateFlagsChanged, emitUnmap, emitUnrealize, errorBell, focus, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBaseline, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getDefaultDirection, getDirection, getDisplay, getFirstChild, getFocusable, getFocusChild, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, moveFocus, observeChildren, observeControllers, onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, pick, pick, queryTooltip, queueAllocate, queueDraw, queueResize, realize, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, root, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setDefaultDirection, setDirection, setFocusable, setFocusChild, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, shouldLayout, show, sizeAllocate, sizeAllocate, snapshot, snapshotChild, stateFlagsChanged, systemSettingChanged, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unroot, unsetStateFlags, unsetStateFlags
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible
announce, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updateProperty, updateRelation, updateState
Methods inherited from interface org.gnome.gtk.Buildable
getBuildableId
-
Constructor Details
-
AboutDialog
Create a AboutDialog proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AboutDialog
public AboutDialog()Creates a newAdwAboutDialog
.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
fromAppdata
public static AboutDialog fromAppdata(String resourcePath, @Nullable @Nullable String releaseNotesVersion) Creates a newAdwAboutDialog
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 releaseAboutDialog: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 inGtk.License
, it will be set toGTK_LICENCE_CUSTOM
.
If
releaseNotesVersion
is notNULL
,AboutDialog:release-notes-version
is set to match it, whileAboutDialog:release-notes
is set from the AppStream release description for that version.- Parameters:
resourcePath
- The resource to usereleaseNotesVersion
- The version to retrieve release notes for- Returns:
- the newly created
AdwAboutDialog
-
addAcknowledgementSection
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
addCreditSection(java.lang.String, java.lang.String[])
- Parameters:
name
- the section namepeople
- the list of names
-
addCreditSection
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
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
name
- the section namepeople
- the list of names
-
addLegalSection
public void addLegalSection(String title, @Nullable @Nullable String copyright, License licenseType, @Nullable @Nullable String license) Adds an extra section to the Legal page.Extra sections will be displayed below the application's own information.
The parameters
copyright
,licenseType
andlicense
will be used to present the it the same way asAboutDialog:copyright
,AboutDialog:license-type
andAboutDialog: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:
title
- the name of the sectioncopyright
- a copyright stringlicenseType
- the type of licenselicense
- custom license information
-
addLink
-
getApplicationIcon
Gets the name of the application icon for this AboutDialog.- Returns:
- the application icon name
-
getApplicationName
Gets the application name for this AboutDialog.- Returns:
- the application name
-
getArtists
Gets the list of artists of the application.- Returns:
- The list of artists
-
getComments
-
getCopyright
Gets the copyright information for this AboutDialog.- Returns:
- the copyright information
-
getDebugInfo
Gets the debug information for this AboutDialog.- Returns:
- the debug information
-
getDebugInfoFilename
Gets the debug information filename for this AboutDialog.- Returns:
- the debug information filename
-
getDesigners
Gets the list of designers of the application.- Returns:
- The list of designers
-
getDeveloperName
Gets the developer name for this AboutDialog.- Returns:
- the developer_name
-
getDevelopers
Gets the list of developers of the application.- Returns:
- The list of developers
-
getDocumenters
Gets the list of documenters of the application.- Returns:
- The list of documenters
-
getIssueUrl
Gets the issue tracker URL for this AboutDialog.- Returns:
- the issue tracker URL
-
getLicense
-
getLicenseType
Gets the license type for this AboutDialog.- Returns:
- the license type
-
getReleaseNotes
Gets the release notes for this AboutDialog.- Returns:
- the release notes
-
getReleaseNotesVersion
Gets the version described by the application's release notes.- Returns:
- the release notes version
-
getSupportUrl
Gets the URL of the support page for this AboutDialog.- Returns:
- the support page URL
-
getTranslatorCredits
Gets the translator credits string.- Returns:
- The translator credits string
-
getVersion
-
getWebsite
Gets the application website URL for this AboutDialog.- Returns:
- the website URL
-
setApplicationIcon
Sets the name of the application icon for this AboutDialog.The icon is displayed at the top of the main page.
- Parameters:
applicationIcon
- the application icon name
-
setApplicationName
Sets the application name for this AboutDialog.The name is displayed at the top of the main page.
- Parameters:
applicationName
- the application name
-
setArtists
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
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
artists
- the list of artists
-
setComments
Sets the comments about the application.Comments will be shown on the Details page, above links.
Unlike
Gtk.AboutDialog:comments
, this string can be long and detailed. It can also contain links and Pango markup.- Parameters:
comments
- the comments
-
setCopyright
Sets the copyright information for this AboutDialog.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.
addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)
can be used to add copyright information for the application dependencies or other components.- Parameters:
copyright
- the copyright information
-
setDebugInfo
Sets the debug information for this AboutDialog.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.
- Parameters:
debugInfo
- the debug information
-
setDebugInfoFilename
Sets the debug information filename for this AboutDialog.It will be used as the suggested filename when saving debug information to a file.
See
AboutDialog:debug-info
.- Parameters:
filename
- the debug info filename
-
setDesigners
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
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
designers
- the list of designers
-
setDeveloperName
Sets the developer name for this AboutDialog.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.- Parameters:
developerName
- the developer name
-
setDevelopers
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
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
developers
- the list of developers
-
setDocumenters
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
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
documenters
- the list of documenters
-
setIssueUrl
Sets the issue tracker URL for this AboutDialog.The issue tracker link is displayed on the main page.
- Parameters:
issueUrl
- the issue tracker URL
-
setLicense
Sets the license for this AboutDialog.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 toGTK_LICENSE_CUSTOM
.The license text will be displayed on the Legal page, below the copyright information.
License text can contain Pango markup and links.
addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)
can be used to add license information for the application dependencies or other components.- Parameters:
license
- the license
-
setLicenseType
Sets the license for this AboutDialog 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 toGTK_LICENSE_CUSTOM
in that case.If
licenseType
isGTK_LICENSE_UNKNOWN
, no information will be displayed.If
licenseType
is different fromGTK_LICENSE_CUSTOM
.AboutDialog:license
will be cleared out.The license description will be displayed on the Legal page, below the copyright information.
addLegalSection(java.lang.String, java.lang.String, org.gnome.gtk.License, java.lang.String)
can be used to add license information for the application dependencies or other components.- Parameters:
licenseType
- the license type
-
setReleaseNotes
Sets the release notes for this AboutDialog.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, theAboutDialog:release-notes-version
of the property will be used as the version; otherwise,AboutDialog:version
is used.- Parameters:
releaseNotes
- the release notes
- Paragraph (
-
setReleaseNotesVersion
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
.- Parameters:
version
- the release notes version
-
setSupportUrl
Sets the URL of the support page for this AboutDialog.The support page link is displayed on the main page.
- Parameters:
supportUrl
- the support page URL
-
setTranslatorCredits
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.
See also:
AboutDialog:developers
AboutDialog:designers
AboutDialog:artists
AboutDialog:documenters
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
translatorCredits
- the translator credits
-
setVersion
Sets the version for this AboutDialog.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.- Parameters:
version
- the version
-
setWebsite
Sets the application website URL for this AboutDialog.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
addLink(java.lang.String, java.lang.String)
.- Parameters:
website
- the website URL
-
onActivateLink
public SignalConnection<AboutDialog.ActivateLinkCallback> onActivateLink(AboutDialog.ActivateLinkCallback handler) Emitted when a URL is activated.Applications may connect to it to override the default behavior, which is to call
Gtk.showUri(org.gnome.gtk.Window, java.lang.String, int)
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitActivateLink
Emits the "activate-link" signal. SeeonActivateLink(org.gnome.adw.AboutDialog.ActivateLinkCallback)
. -
builder
AAboutDialog.Builder
object constructs aAboutDialog
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withAboutDialog.Builder.build()
.
-