Class AboutWindow
- All Implemented Interfaces:
Proxy
,Accessible
,Buildable
,ConstraintTarget
,Native
,Root
,ShortcutManager
An about window is typically opened when the user activates the About …
item in the application's primary menu. All parts of the window are optional.
Main page
AdwAboutWindow
prominently displays the application's icon, name, developer
name and version. They can be set with the AboutWindow:application-icon
,
AboutWindow:application-name
,
AboutWindow:developer-name
and AboutWindow:version
respectively.
What's New
AdwAboutWindow
provides a way for applications to display their release
notes, set with the AboutWindow: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 AboutWindow:version
. Use
AboutWindow:release-notes-version
to override it.
Details
The Details page displays the application comments and links.
The comments can be set with the AboutWindow: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 AboutWindow: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
AdwAboutWindow
displays the following two links on the main page:
- Support Questions, set with the
AboutWindow:support-url
property, - Report an Issue, set with the
AboutWindow:issue-url
property.
Additionally, applications can provide debugging information. It will be
shown separately on the Troubleshooting page. Use the
AboutWindow: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.
AdwAboutWindow
provides a quick way to save debug information to a file.
When saving, AboutWindow: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
AboutWindow:developers
property, - Designers, set with the
AboutWindow:designers
property, - Artists, set with the
AboutWindow:artists
property, - Documenters, set with the
AboutWindow:documenters
property, - Translators, set with the
AboutWindow: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 AboutWindow: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 AboutWindow:license-type
property. If the application's
license is not in the list, AboutWindow: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 AdwAboutWindow
as convenient as possible, you can
use the function Adw.showAboutWindow(org.gnome.gtk.Window, java.lang.String, java.lang.Object...)
which constructs and shows a
window.
static void
show_about (GtkApplication *app)
{
const char *developers[] = {
"Angela Avery",
NULL
};
const char *designers[] = {
"GNOME Design Team",
NULL
};
adw_show_about_window (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
AdwAboutWindow
has a main CSS node with the name window
and the
style class .about
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.static interface
Deprecated.static class
AboutWindow.Builder<B extends AboutWindow.Builder<B>>
Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.Nested classes/interfaces inherited from class org.gnome.adw.Window
Window.WindowClass
Nested classes/interfaces inherited from class org.gnome.gtk.Window
Window.ActivateDefaultCallback, Window.ActivateFocusCallback, Window.CloseRequestCallback, Window.EnableDebuggingCallback, Window.KeysChangedCallback
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
Nested classes/interfaces inherited from interface org.gnome.gtk.Native
Native.NativeImpl, Native.NativeInterface
Nested classes/interfaces inherited from interface org.gnome.gtk.Root
Root.RootImpl, Root.RootInterface
Nested classes/interfaces inherited from interface org.gnome.gtk.ShortcutManager
ShortcutManager.ShortcutManagerImpl, ShortcutManager.ShortcutManagerInterface
-
Constructor Summary
ConstructorDescriptionDeprecated.AboutWindow
(MemorySegment address) Deprecated.Create a AboutWindow proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAcknowledgementSection
(@Nullable String name, String[] people) Deprecated.UseAboutDialog
.void
addCreditSection
(@Nullable String name, String[] people) Deprecated.UseAboutDialog
.void
addLegalSection
(String title, @Nullable String copyright, License licenseType, @Nullable String license) Deprecated.UseAboutDialog
.void
Deprecated.UseAboutDialog
.protected AboutWindow
asParent()
Deprecated.Returns this instance as if it were its parent type.static AboutWindow.Builder
<? extends AboutWindow.Builder> builder()
Deprecated.AAboutWindow.Builder
object constructs aAboutWindow
with the specified properties.boolean
emitActivateLink
(String uri) Deprecated.static AboutWindow
fromAppdata
(String resourcePath, @Nullable String releaseNotesVersion) Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.String[]
Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.String[]
Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.String[]
Deprecated.UseAboutDialog
.String[]
Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.static Type
getType()
Deprecated.Get the GType of the AboutWindow classDeprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.Deprecated.UseAboutDialog
.void
setApplicationIcon
(String applicationIcon) Deprecated.UseAboutDialog
.void
setApplicationName
(String applicationName) Deprecated.UseAboutDialog
.void
setArtists
(@Nullable String[] artists) Deprecated.UseAboutDialog
.void
setComments
(String comments) Deprecated.UseAboutDialog
.void
setCopyright
(String copyright) Deprecated.UseAboutDialog
.void
setDebugInfo
(String debugInfo) Deprecated.UseAboutDialog
.void
setDebugInfoFilename
(String filename) Deprecated.UseAboutDialog
.void
setDesigners
(@Nullable String[] designers) Deprecated.UseAboutDialog
.void
setDeveloperName
(String developerName) Deprecated.UseAboutDialog
.void
setDevelopers
(@Nullable String[] developers) Deprecated.UseAboutDialog
.void
setDocumenters
(@Nullable String[] documenters) Deprecated.UseAboutDialog
.void
setIssueUrl
(String issueUrl) Deprecated.UseAboutDialog
.void
setLicense
(String license) Deprecated.UseAboutDialog
.void
setLicenseType
(License licenseType) Deprecated.UseAboutDialog
.void
setReleaseNotes
(String releaseNotes) Deprecated.UseAboutDialog
.void
setReleaseNotesVersion
(String version) Deprecated.UseAboutDialog
.void
setSupportUrl
(String supportUrl) Deprecated.UseAboutDialog
.void
setTranslatorCredits
(String translatorCredits) Deprecated.UseAboutDialog
.void
setVersion
(String version) Deprecated.UseAboutDialog
.void
setWebsite
(String website) Deprecated.UseAboutDialog
.Methods inherited from class org.gnome.adw.Window
addBreakpoint, getContent, getCurrentBreakpoint, getDialogs, getMemoryLayout, getVisibleDialog, setContent
Methods inherited from class org.gnome.gtk.Window
activateDefault, activateFocus, close, closeRequest, destroy, emitActivateDefault, emitActivateFocus, emitCloseRequest, emitEnableDebugging, emitKeysChanged, enableDebugging, fullscreen, fullscreenOnMonitor, getApplication, getChild, getDecorated, getDefaultIconName, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getFocus, getFocusVisible, getGroup, getHandleMenubarAccel, getHideOnClose, getIconName, getMnemonicsVisible, getModal, getResizable, getTitle, getTitlebar, getToplevels, getTransientFor, hasGroup, isActive, isFullscreen, isMaximized, isSuspended, keysChanged, listToplevels, maximize, minimize, onActivateDefault, onActivateFocus, onCloseRequest, onEnableDebugging, onKeysChanged, present, presentWithTime, setApplication, setAutoStartupNotification, setChild, setDecorated, setDefaultIconName, setDefaultSize, setDefaultWidget, setDeletable, setDestroyWithParent, setDisplay, setFocus, setFocusVisible, setHandleMenubarAccel, setHideOnClose, setIconName, setInteractiveDebugging, setMnemonicsVisible, setModal, setResizable, setStartupId, setTitle, setTitlebar, setTransientFor, unfullscreen, unmaximize, unminimize
Methods inherited from class org.gnome.gtk.Widget
actionSetEnabled, activateActionIfExists, 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
Methods inherited from interface org.gnome.gtk.Native
getRenderer, getSurface, getSurfaceTransform, realize, unrealize
Methods inherited from interface org.gnome.gtk.Root
getDisplay, getFocus, setFocus
-
Constructor Details
-
AboutWindow
Deprecated.Create a AboutWindow proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AboutWindow
-
-
Method Details
-
getType
-
asParent
Deprecated.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
@Deprecated public static AboutWindow fromAppdata(String resourcePath, @Nullable @Nullable String releaseNotesVersion) Deprecated.UseAboutDialog
.Creates a newAdwAboutWindow
using AppStream metadata.This automatically sets the following properties with the following AppStream values:
AboutWindow:application-icon
is set from the<id>
AboutWindow:application-name
is set from the<name>
AboutWindow:developer-name
is set from the<name>
within<developer>
AboutWindow:version
is set from the version of the latest releaseAboutWindow:website
is set from the<url type="homepage">
AboutWindow:support-url
is set from the<url type="help">
AboutWindow:issue-url
is set from the<url type="bugtracker">
AboutWindow: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
,AboutWindow:release-notes-version
is set to match it, whileAboutWindow: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
AdwAboutWindow
-
addAcknowledgementSection
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
addCreditSection(java.lang.String, java.lang.String[])
- Parameters:
name
- the section namepeople
- the list of names
-
addCreditSection
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
name
- the section namepeople
- the list of names
-
addLegalSection
@Deprecated public void addLegalSection(String title, @Nullable @Nullable String copyright, License licenseType, @Nullable @Nullable String license) Deprecated.UseAboutDialog
.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 asAboutWindow:copyright
,AboutWindow:license-type
andAboutWindow: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_window_add_legal_section (ADW_ABOUT_WINDOW (about), _("Copyright and a known license"), "© 2022 Example", GTK_LICENSE_LGPL_2_1, NULL); adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), _("Copyright and custom license"), "© 2022 Example", GTK_LICENSE_CUSTOM, "Custom license text"); adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about), _("Copyright only"), "© 2022 Example", GTK_LICENSE_UNKNOWN, NULL); adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (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
Deprecated.UseAboutDialog
.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
AboutWindow:website
.- Parameters:
title
- the link titleurl
- the link URL
-
getApplicationIcon
Deprecated.UseAboutDialog
.Gets the name of the application icon for this AboutWindow.- Returns:
- the application icon name
-
getApplicationName
Deprecated.UseAboutDialog
.Gets the application name for this AboutWindow.- Returns:
- the application name
-
getArtists
Deprecated.UseAboutDialog
.Gets the list of artists of the application.- Returns:
- The list of artists
-
getComments
-
getCopyright
Deprecated.UseAboutDialog
.Gets the copyright information for this AboutWindow.- Returns:
- the copyright information
-
getDebugInfo
Deprecated.UseAboutDialog
.Gets the debug information for this AboutWindow.- Returns:
- the debug information
-
getDebugInfoFilename
Deprecated.UseAboutDialog
.Gets the debug information filename for this AboutWindow.- Returns:
- the debug information filename
-
getDesigners
Deprecated.UseAboutDialog
.Gets the list of designers of the application.- Returns:
- The list of designers
-
getDeveloperName
Deprecated.UseAboutDialog
.Gets the developer name for this AboutWindow.- Returns:
- the developer_name
-
getDevelopers
Deprecated.UseAboutDialog
.Gets the list of developers of the application.- Returns:
- The list of developers
-
getDocumenters
Deprecated.UseAboutDialog
.Gets the list of documenters of the application.- Returns:
- The list of documenters
-
getIssueUrl
Deprecated.UseAboutDialog
.Gets the issue tracker URL for this AboutWindow.- Returns:
- the issue tracker URL
-
getLicense
-
getLicenseType
-
getReleaseNotes
Deprecated.UseAboutDialog
.Gets the release notes for this AboutWindow.- Returns:
- the release notes
-
getReleaseNotesVersion
Deprecated.UseAboutDialog
.Gets the version described by the application's release notes.- Returns:
- the release notes version
-
getSupportUrl
Deprecated.UseAboutDialog
.Gets the URL of the support page for this AboutWindow.- Returns:
- the support page URL
-
getTranslatorCredits
Deprecated.UseAboutDialog
.Gets the translator credits string.- Returns:
- The translator credits string
-
getVersion
-
getWebsite
Deprecated.UseAboutDialog
.Gets the application website URL for this AboutWindow.- Returns:
- the website URL
-
setApplicationIcon
Deprecated.UseAboutDialog
.Sets the name of the application icon for this AboutWindow.The icon is displayed at the top of the main page.
- Parameters:
applicationIcon
- the application icon name
-
setApplicationName
Deprecated.UseAboutDialog
.Sets the application name for this AboutWindow.The name is displayed at the top of the main page.
- Parameters:
applicationName
- the application name
-
setArtists
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:documenters
AboutWindow:translator-credits
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
artists
- the list of artists
-
setComments
Deprecated.UseAboutDialog
.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
Deprecated.UseAboutDialog
.Sets the copyright information for this AboutWindow.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
Deprecated.UseAboutDialog
.Sets the debug information for this AboutWindow.Debug information will be shown on the Troubleshooting page. It's intended to be attached to issue reports when reporting issues against the application.
AdwAboutWindow
provides a quick way to save debug information to a file. When saving,AboutWindow:debug-info-filename
would be used as the suggested filename.Debug information cannot contain markup or links.
- Parameters:
debugInfo
- the debug information
-
setDebugInfoFilename
Deprecated.UseAboutDialog
.Sets the debug information filename for this AboutWindow.It will be used as the suggested filename when saving debug information to a file.
See
AboutWindow:debug-info
.- Parameters:
filename
- the debug info filename
-
setDesigners
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
designers
- the list of designers
-
setDeveloperName
Deprecated.UseAboutDialog
.Sets the developer name for this AboutWindow.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
AboutWindow:developers
and related properties.- Parameters:
developerName
- the developer name
-
setDevelopers
Deprecated.UseAboutDialog
.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:
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
AboutWindow:translator-credits
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
developers
- the list of developers
-
setDocumenters
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:translator-credits
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
documenters
- the list of documenters
-
setIssueUrl
Deprecated.UseAboutDialog
.Sets the issue tracker URL for this AboutWindow.The issue tracker link is displayed on the main page.
- Parameters:
issueUrl
- the issue tracker URL
-
setLicense
Deprecated.UseAboutDialog
.Sets the license for this AboutWindow.This can be used to set a custom text for the license if it can't be set via
AboutWindow:license-type
.When set,
AboutWindow: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
Deprecated.UseAboutDialog
.Sets the license for this AboutWindow from a list of known licenses.If the application's license is not in the list,
AboutWindow: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
.AboutWindow: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
Deprecated.UseAboutDialog
.Sets the release notes for this AboutWindow.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.
AdwAboutWindow
displays the version above the release notes. If set, theAboutWindow:release-notes-version
of the property will be used as the version; otherwise,AboutWindow:version
is used.- Parameters:
releaseNotes
- the release notes
- Paragraph (
-
setReleaseNotesVersion
Deprecated.UseAboutDialog
.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,
AboutWindow: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
AboutWindow:release-notes
.- Parameters:
version
- the release notes version
-
setSupportUrl
Deprecated.UseAboutDialog
.Sets the URL of the support page for this AboutWindow.The support page link is displayed on the main page.
- Parameters:
supportUrl
- the support page URL
-
setTranslatorCredits
Deprecated.UseAboutDialog
.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:
AboutWindow:developers
AboutWindow:designers
AboutWindow:artists
AboutWindow:documenters
addCreditSection(java.lang.String, java.lang.String[])
addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
translatorCredits
- the translator credits
-
setVersion
Deprecated.UseAboutDialog
.Sets the version for this AboutWindow.The version is displayed on the main page.
If
AboutWindow: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
Deprecated.UseAboutDialog
.Sets the application website URL for this AboutWindow.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
@Deprecated public SignalConnection<AboutWindow.ActivateLinkCallback> onActivateLink(AboutWindow.ActivateLinkCallback handler) Deprecated.UseAboutDialog
.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
Deprecated.Emits the "activate-link" signal. SeeonActivateLink(org.gnome.adw.AboutWindow.ActivateLinkCallback)
. -
builder
Deprecated.AAboutWindow.Builder
object constructs aAboutWindow
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withAboutWindow.Builder.build()
.
-
AboutDialog
.