Class AboutWindow
- All Implemented Interfaces:
Accessible,Buildable,ConstraintTarget,Native,Root,ShortcutManager,Proxy
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-urlproperty, - Report an Issue, set with the
AboutWindow:issue-urlproperty.
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:developersproperty, - Designers, set with the
AboutWindow:designersproperty, - Artists, set with the
AboutWindow:artistsproperty, - Documenters, set with the
AboutWindow:documentersproperty, - Translators, set with the
AboutWindow:translator-creditsproperty.
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.
- Since:
- 1.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static interfaceDeprecated.static classAboutWindow.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.WindowClassNested classes/interfaces inherited from class org.gnome.gtk.Window
Window.ActivateDefaultCallback, Window.ActivateFocusCallback, Window.CloseRequestCallback, Window.EnableDebuggingCallback, Window.KeysChangedCallbackNested 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.Widget$Impl, Widget.WidgetClassNested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClassNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface org.gnome.gtk.Accessible
Accessible.Accessible$Impl, Accessible.AccessibleInterfaceNested classes/interfaces inherited from interface org.gnome.gtk.Buildable
Buildable.Buildable$Impl, Buildable.BuildableIfaceNested classes/interfaces inherited from interface org.gnome.gtk.ConstraintTarget
ConstraintTarget.ConstraintTarget$Impl, ConstraintTarget.ConstraintTargetInterfaceNested classes/interfaces inherited from interface org.gnome.gtk.Native
Native.Native$Impl, Native.NativeInterfaceNested classes/interfaces inherited from interface org.gnome.gtk.Root
Root.Root$Impl, Root.RootInterfaceNested classes/interfaces inherited from interface org.gnome.gtk.ShortcutManager
ShortcutManager.ShortcutManager$Impl, ShortcutManager.ShortcutManagerInterface -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new AboutWindow.AboutWindow(MemorySegment address) Deprecated.Create a AboutWindow proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAcknowledgementSection(@Nullable String name, @Nullable String @Nullable [] people) Deprecated.UseAboutDialog.voidaddCreditSection(@Nullable String name, @Nullable String @Nullable [] people) Deprecated.UseAboutDialog.voidaddLegalSection(String title, @Nullable String copyright, License licenseType, @Nullable String license) Deprecated.UseAboutDialog.voidDeprecated.UseAboutDialog.protected AboutWindowasParent()Deprecated.Returns this instance as if it were its parent type.static AboutWindow.Builder<? extends AboutWindow.Builder> builder()Deprecated.AAboutWindow.Builderobject constructs aAboutWindowwith the specified properties.booleanemitActivateLink(String uri) Deprecated.static AboutWindowfromAppdata(String resourcePath, @Nullable String releaseNotesVersion) Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.@Nullable String @Nullable []Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.@Nullable String @Nullable []Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.@Nullable String @Nullable []Deprecated.UseAboutDialog.@Nullable String @Nullable []Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.static @Nullable TypegetType()Deprecated.Get the GType of the AboutWindow classDeprecated.UseAboutDialog.Deprecated.UseAboutDialog.Deprecated.UseAboutDialog.voidsetApplicationIcon(String applicationIcon) Deprecated.UseAboutDialog.voidsetApplicationName(String applicationName) Deprecated.UseAboutDialog.voidsetArtists(@Nullable String @Nullable [] artists) Deprecated.UseAboutDialog.voidsetComments(String comments) Deprecated.UseAboutDialog.voidsetCopyright(String copyright) Deprecated.UseAboutDialog.voidsetDebugInfo(String debugInfo) Deprecated.UseAboutDialog.voidsetDebugInfoFilename(String filename) Deprecated.UseAboutDialog.voidsetDesigners(@Nullable String @Nullable [] designers) Deprecated.UseAboutDialog.voidsetDeveloperName(String developerName) Deprecated.UseAboutDialog.voidsetDevelopers(@Nullable String @Nullable [] developers) Deprecated.UseAboutDialog.voidsetDocumenters(@Nullable String @Nullable [] documenters) Deprecated.UseAboutDialog.voidsetIssueUrl(String issueUrl) Deprecated.UseAboutDialog.voidsetLicense(String license) Deprecated.UseAboutDialog.voidsetLicenseType(License licenseType) Deprecated.UseAboutDialog.voidsetReleaseNotes(String releaseNotes) Deprecated.UseAboutDialog.voidsetReleaseNotesVersion(String version) Deprecated.UseAboutDialog.voidsetSupportUrl(String supportUrl) Deprecated.UseAboutDialog.voidsetTranslatorCredits(String translatorCredits) Deprecated.UseAboutDialog.voidsetVersion(String version) Deprecated.UseAboutDialog.voidsetWebsite(String website) Deprecated.UseAboutDialog.Methods inherited from class org.gnome.adw.Window
addBreakpoint, getAdaptivePreview, getContent, getCurrentBreakpoint, getDialogs, getMemoryLayout, getVisibleDialog, setAdaptivePreview, setContentMethods 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, getGravity, 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, setGravity, setHandleMenubarAccel, setHideOnClose, setIconName, setInteractiveDebugging, setMnemonicsVisible, setModal, setResizable, setStartupId, setTitle, setTitlebar, setTransientFor, unfullscreen, unmaximize, unminimizeMethods 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, getLimitEvents, 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, setLimitEvents, 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, unsetStateFlagsMethods 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, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible
announce, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updatePlatformState, updateProperty, updateRelation, updateStateMethods inherited from interface org.gnome.gtk.Buildable
getBuildableIdMethods inherited from interface org.gnome.gtk.Native
getRenderer, getSurface, getSurfaceTransform, realize, unrealizeMethods 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
public AboutWindow()Deprecated.Creates a new AboutWindow.
-
-
Method Details
-
getType
Deprecated.Get the GType of the AboutWindow class- Returns:
- the GType
-
asParent
Deprecated.Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, 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 String releaseNotesVersion) Deprecated.UseAboutDialog.Creates a newAdwAboutWindowusing AppStream metadata.This automatically sets the following properties with the following AppStream values:
AboutWindow:application-iconis set from the<id>AboutWindow:application-nameis set from the<name>AboutWindow:developer-nameis set from the<name>within<developer>AboutWindow:versionis set from the version of the latest releaseAboutWindow:websiteis set from the<url type="homepage">AboutWindow:support-urlis set from the<url type="help">AboutWindow:issue-urlis set from the<url type="bugtracker">AboutWindow:license-typeis 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
releaseNotesVersionis notNULL,AboutWindow:release-notes-versionis set to match it, whileAboutWindow:release-notesis 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 - Since:
- 1.4
-
addAcknowledgementSection
@Deprecated public void addAcknowledgementSection(@Nullable String name, @Nullable String @Nullable [] people) 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:developersAboutWindow:designersAboutWindow:artistsAboutWindow:documentersAboutWindow:translator-creditsaddCreditSection(java.lang.String, java.lang.String[])
- Parameters:
name- the section namepeople- the list of names- Since:
- 1.2
-
addCreditSection
@Deprecated public void addCreditSection(@Nullable String name, @Nullable String @Nullable [] people) 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:developersAboutWindow:designersAboutWindow:artistsAboutWindow:documentersAboutWindow:translator-creditsaddAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
name- the section namepeople- the list of names- Since:
- 1.2
-
addLegalSection
@Deprecated public void addLegalSection(String title, @Nullable String copyright, License licenseType, @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,licenseTypeandlicensewill be used to present the it the same way asAboutWindow:copyright,AboutWindow:license-typeandAboutWindow:licenseare 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- Since:
- 1.2
-
addLink
Deprecated.UseAboutDialog.Adds an extra link to the Details page.Extra links are displayed under the comment and website.
Underlines in
titlewill be interpreted as indicating a mnemonic.See
AboutWindow:website.- Parameters:
title- the link titleurl- the link URL- Since:
- 1.2
-
getApplicationIcon
Deprecated.UseAboutDialog.Gets the name of the application icon forself.- Returns:
- the application icon name
- Since:
- 1.2
-
getApplicationName
Deprecated.UseAboutDialog.Gets the application name forself.- Returns:
- the application name
- Since:
- 1.2
-
getArtists
Deprecated.UseAboutDialog.Gets the list of artists of the application.- Returns:
- The list of artists
- Since:
- 1.2
-
getComments
Deprecated.UseAboutDialog.Gets the comments about the application.- Returns:
- the comments
- Since:
- 1.2
-
getCopyright
Deprecated.UseAboutDialog.Gets the copyright information forself.- Returns:
- the copyright information
- Since:
- 1.2
-
getDebugInfo
Deprecated.UseAboutDialog.Gets the debug information forself.- Returns:
- the debug information
- Since:
- 1.2
-
getDebugInfoFilename
Deprecated.UseAboutDialog.Gets the debug information filename forself.- Returns:
- the debug information filename
- Since:
- 1.2
-
getDesigners
Deprecated.UseAboutDialog.Gets the list of designers of the application.- Returns:
- The list of designers
- Since:
- 1.2
-
getDeveloperName
Deprecated.UseAboutDialog.Gets the developer name forself.- Returns:
- the developer_name
- Since:
- 1.2
-
getDevelopers
Deprecated.UseAboutDialog.Gets the list of developers of the application.- Returns:
- The list of developers
- Since:
- 1.2
-
getDocumenters
Deprecated.UseAboutDialog.Gets the list of documenters of the application.- Returns:
- The list of documenters
- Since:
- 1.2
-
getIssueUrl
Deprecated.UseAboutDialog.Gets the issue tracker URL forself.- Returns:
- the issue tracker URL
- Since:
- 1.2
-
getLicense
-
getLicenseType
-
getReleaseNotes
-
getReleaseNotesVersion
Deprecated.UseAboutDialog.Gets the version described by the application's release notes.- Returns:
- the release notes version
- Since:
- 1.2
-
getSupportUrl
Deprecated.UseAboutDialog.Gets the URL of the support page forself.- Returns:
- the support page URL
- Since:
- 1.2
-
getTranslatorCredits
Deprecated.UseAboutDialog.Gets the translator credits string.- Returns:
- The translator credits string
- Since:
- 1.2
-
getVersion
-
getWebsite
Deprecated.UseAboutDialog.Gets the application website URL forself.- Returns:
- the website URL
- Since:
- 1.2
-
setApplicationIcon
Deprecated.UseAboutDialog.Sets the name of the application icon forself.The icon is displayed at the top of the main page.
- Parameters:
applicationIcon- the application icon name- Since:
- 1.2
-
setApplicationName
Deprecated.UseAboutDialog.Sets the application name forself.The name is displayed at the top of the main page.
- Parameters:
applicationName- the application name- Since:
- 1.2
-
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:developersAboutWindow:designersAboutWindow:documentersAboutWindow:translator-creditsaddCreditSection(java.lang.String, java.lang.String[])addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
artists- the list of artists- Since:
- 1.2
-
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- Since:
- 1.2
-
setCopyright
Deprecated.UseAboutDialog.Sets the copyright information forself.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- Since:
- 1.2
-
setDebugInfo
Deprecated.UseAboutDialog.Sets the debug information forself.Debug information will be shown on the Troubleshooting page. It's intended to be attached to issue reports when reporting issues against the application.
AdwAboutWindowprovides a quick way to save debug information to a file. When saving,AboutWindow:debug-info-filenamewould be used as the suggested filename.Debug information cannot contain markup or links.
- Parameters:
debugInfo- the debug information- Since:
- 1.2
-
setDebugInfoFilename
Deprecated.UseAboutDialog.Sets the debug information filename forself.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- Since:
- 1.2
-
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:developersAboutWindow:artistsAboutWindow:documentersAboutWindow:translator-creditsaddCreditSection(java.lang.String, java.lang.String[])addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
designers- the list of designers- Since:
- 1.2
-
setDeveloperName
Deprecated.UseAboutDialog.Sets the developer name forself.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:developersand related properties.- Parameters:
developerName- the developer name- Since:
- 1.2
-
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:designersAboutWindow:artistsAboutWindow:documentersAboutWindow:translator-creditsaddCreditSection(java.lang.String, java.lang.String[])addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
developers- the list of developers- Since:
- 1.2
-
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:developersAboutWindow:designersAboutWindow:artistsAboutWindow:translator-creditsaddCreditSection(java.lang.String, java.lang.String[])addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
documenters- the list of documenters- Since:
- 1.2
-
setIssueUrl
Deprecated.UseAboutDialog.Sets the issue tracker URL forself.The issue tracker link is displayed on the main page.
- Parameters:
issueUrl- the issue tracker URL- Since:
- 1.2
-
setLicense
Deprecated.UseAboutDialog.Sets the license forself.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-typewill 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- Since:
- 1.2
-
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:licensecan be used instead. The license type will be automatically set toGTK_LICENSE_CUSTOMin that case.If
licenseTypeisGTK_LICENSE_UNKNOWN, no information will be displayed.If
licenseTypeis different fromGTK_LICENSE_CUSTOM.AboutWindow:licensewill 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- Since:
- 1.2
-
setReleaseNotes
Deprecated.UseAboutDialog.Sets the release notes forself.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.
AdwAboutWindowdisplays the version above the release notes. If set, theAboutWindow:release-notes-versionof the property will be used as the version; otherwise,AboutWindow:versionis used.- Parameters:
releaseNotes- the release notes- Since:
- 1.2
- 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:versionwill 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- Since:
- 1.2
-
setSupportUrl
Deprecated.UseAboutDialog.Sets the URL of the support page forself.The support page link is displayed on the main page.
- Parameters:
supportUrl- the support page URL- Since:
- 1.2
-
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. When there is more than one translator, they must be separated by a newline in the same string.
See also:
AboutWindow:developersAboutWindow:designersAboutWindow:artistsAboutWindow:documentersaddCreditSection(java.lang.String, java.lang.String[])addAcknowledgementSection(java.lang.String, java.lang.String[])
- Parameters:
translatorCredits- the translator credits- Since:
- 1.2
-
setVersion
Deprecated.UseAboutDialog.Sets the version forself.The version is displayed on the main page.
If
AboutWindow:release-notes-versionis not set, the version will also be displayed above the release notes on the What's New page.- Parameters:
version- the version- Since:
- 1.2
-
setWebsite
Deprecated.UseAboutDialog.Sets the application website URL forself.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- Since:
- 1.2
-
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
- Since:
- 1.2
- See Also:
-
emitActivateLink
Deprecated.Emits the "activate-link" signal. SeeonActivateLink(org.gnome.adw.AboutWindow.ActivateLinkCallback). -
builder
Deprecated.AAboutWindow.Builderobject constructs aAboutWindowwith the specified properties. Use the variousset...()methods to set properties, and finish construction withAboutWindow.Builder.build().- Returns:
- the builder object
-
AboutDialog.