Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Exported types
- Methods
- addCreditSection
- getArtists
- getAuthors
- getComments
- getCopyright
- getDocumenters
- getLicense
- getLicenseType
- getLogo
- getLogoIconName
- getProgramName
- getSystemInformation
- getTranslatorCredits
- getVersion
- getWebsite
- getWebsiteLabel
- getWrapLicense
- new
- setArtists
- setAuthors
- setComments
- setCopyright
- setDocumenters
- setLicense
- setLicenseType
- setLogo
- setLogoIconName
- setProgramName
- setSystemInformation
- setTranslatorCredits
- setVersion
- setWebsite
- setWebsiteLabel
- setWrapLicense
- Properties
- Signals
The GtkAboutDialog
offers a simple way to display information about
a program.
The shown information includes the programs' logo, name, copyright, website and license. It is also possible to give credits to the authors, documenters, translators and artists who have worked on the program.
An about dialog is typically opened when the user selects the About
option from the Help
menu. All parts of the dialog are optional.
About dialogs often contain links and email addresses. GtkAboutDialog
displays these as clickable links. By default, it calls fileLauncherLaunch
when a user clicks one. The behaviour can be overridden with the
AboutDialog::activateLink signal.
To specify a person with an email address, use a string like
Edgar Allan Poe <edgar@poe.com>
. To specify a website with a title,
use a string like GTK team https://www.gtk.org
.
To make constructing a GtkAboutDialog
as convenient as possible, you can
use the function Gtk.show_about_dialog
which constructs and shows
a dialog and keeps it around so that it can be shown again.
Note that GTK sets a default title of _("About %s")
on the dialog
window (where %s
is replaced by the name of the application, but in
order to ensure proper translation of the title, applications should
set the title property explicitly when constructing a GtkAboutDialog
,
as shown in the following example:
c code
GFile *logo_file = g_file_new_for_path ("./logo.png"); GdkTexture *example_logo = gdk_texture_new_from_file (logo_file, NULL); g_object_unref (logo_file); gtk_show_about_dialog (NULL, "program-name", "ExampleCode", "logo", example_logo, "title", _("About ExampleCode"), NULL);
CSS nodes
GtkAboutDialog
has a single CSS node with the name window
and style
class .aboutdialog
.
Synopsis
- newtype AboutDialog = AboutDialog (ManagedPtr AboutDialog)
- class (GObject o, IsDescendantOf AboutDialog o) => IsAboutDialog o
- toAboutDialog :: (MonadIO m, IsAboutDialog o) => o -> m AboutDialog
- aboutDialogAddCreditSection :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Text -> [Text] -> m ()
- aboutDialogGetArtists :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m [Text]
- aboutDialogGetAuthors :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m [Text]
- aboutDialogGetComments :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetCopyright :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetDocumenters :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m [Text]
- aboutDialogGetLicense :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetLicenseType :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m License
- aboutDialogGetLogo :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Paintable)
- aboutDialogGetLogoIconName :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetProgramName :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetSystemInformation :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetTranslatorCredits :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetVersion :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetWebsite :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetWebsiteLabel :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m (Maybe Text)
- aboutDialogGetWrapLicense :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> m Bool
- aboutDialogNew :: (HasCallStack, MonadIO m) => m AboutDialog
- aboutDialogSetArtists :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> [Text] -> m ()
- aboutDialogSetAuthors :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> [Text] -> m ()
- aboutDialogSetComments :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetCopyright :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetDocumenters :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> [Text] -> m ()
- aboutDialogSetLicense :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetLicenseType :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> License -> m ()
- aboutDialogSetLogo :: (HasCallStack, MonadIO m, IsAboutDialog a, IsPaintable b) => a -> Maybe b -> m ()
- aboutDialogSetLogoIconName :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetProgramName :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetSystemInformation :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetTranslatorCredits :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetVersion :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetWebsite :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Maybe Text -> m ()
- aboutDialogSetWebsiteLabel :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Text -> m ()
- aboutDialogSetWrapLicense :: (HasCallStack, MonadIO m, IsAboutDialog a) => a -> Bool -> m ()
- constructAboutDialogArtists :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getAboutDialogArtists :: (MonadIO m, IsAboutDialog o) => o -> m [Text]
- setAboutDialogArtists :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m ()
- constructAboutDialogAuthors :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getAboutDialogAuthors :: (MonadIO m, IsAboutDialog o) => o -> m [Text]
- setAboutDialogAuthors :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m ()
- clearAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogComments :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogCopyright :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- constructAboutDialogDocumenters :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getAboutDialogDocumenters :: (MonadIO m, IsAboutDialog o) => o -> m [Text]
- setAboutDialogDocumenters :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m ()
- clearAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogLicense :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- constructAboutDialogLicenseType :: (IsAboutDialog o, MonadIO m) => License -> m (GValueConstruct o)
- getAboutDialogLicenseType :: (MonadIO m, IsAboutDialog o) => o -> m License
- setAboutDialogLicenseType :: (MonadIO m, IsAboutDialog o) => o -> License -> m ()
- clearAboutDialogLogo :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogLogo :: (IsAboutDialog o, MonadIO m, IsPaintable a) => a -> m (GValueConstruct o)
- getAboutDialogLogo :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Paintable)
- setAboutDialogLogo :: (MonadIO m, IsAboutDialog o, IsPaintable a) => o -> a -> m ()
- clearAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogLogoIconName :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogProgramName :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogSystemInformation :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogTranslatorCredits :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogVersion :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- clearAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> m ()
- constructAboutDialogWebsite :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- constructAboutDialogWebsiteLabel :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAboutDialogWebsiteLabel :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text)
- setAboutDialogWebsiteLabel :: (MonadIO m, IsAboutDialog o) => o -> Text -> m ()
- constructAboutDialogWrapLicense :: (IsAboutDialog o, MonadIO m) => Bool -> m (GValueConstruct o)
- getAboutDialogWrapLicense :: (MonadIO m, IsAboutDialog o) => o -> m Bool
- setAboutDialogWrapLicense :: (MonadIO m, IsAboutDialog o) => o -> Bool -> m ()
- type AboutDialogActivateLinkCallback = Text -> IO Bool
- afterAboutDialogActivateLink :: (IsAboutDialog a, MonadIO m) => a -> ((?self :: a) => AboutDialogActivateLinkCallback) -> m SignalHandlerId
- onAboutDialogActivateLink :: (IsAboutDialog a, MonadIO m) => a -> ((?self :: a) => AboutDialogActivateLinkCallback) -> m SignalHandlerId
Exported types
newtype AboutDialog Source #
Memory-managed wrapper type.
AboutDialog (ManagedPtr AboutDialog) |
Instances
Eq AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog (==) :: AboutDialog -> AboutDialog -> Bool # (/=) :: AboutDialog -> AboutDialog -> Bool # | |
GObject AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog | |
ManagedPtrNewtype AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog toManagedPtr :: AboutDialog -> ManagedPtr AboutDialog | |
TypedObject AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog | |
HasParentTypes AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog | |
IsGValue (Maybe AboutDialog) Source # | Convert |
Defined in GI.Gtk.Objects.AboutDialog gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe AboutDialog -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe AboutDialog) | |
type ParentTypes AboutDialog Source # | |
Defined in GI.Gtk.Objects.AboutDialog type ParentTypes AboutDialog = '[Window, Widget, Object, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager] |
class (GObject o, IsDescendantOf AboutDialog o) => IsAboutDialog o Source #
Type class for types which can be safely cast to AboutDialog
, for instance with toAboutDialog
.
Instances
(GObject o, IsDescendantOf AboutDialog o) => IsAboutDialog o Source # | |
Defined in GI.Gtk.Objects.AboutDialog |
toAboutDialog :: (MonadIO m, IsAboutDialog o) => o -> m AboutDialog Source #
Cast to AboutDialog
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, addController, addCreditSection, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, close, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, destroy, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasGroup, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isActive, isAncestor, isDrawable, isFloating, isFocus, isFullscreen, isMaximized, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, maximize, measure, minimize, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, present, presentWithTime, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unminimize, unparent, unrealize, unref, unsetStateFlags, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleParent, getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getApplication, getArtists, getAtContext, getAuthors, getBounds, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getColor, getComments, getCopyright, getCssClasses, getCssName, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDirection, getDisplay, getDocumenters, getFirstAccessibleChild, getFirstChild, getFocus, getFocusChild, getFocusOnClick, getFocusVisible, getFocusable, getFontMap, getFontOptions, getFrameClock, getGroup, getHalign, getHandleMenubarAccel, getHasTooltip, getHeight, getHexpand, getHexpandSet, getHideOnClose, getIconName, getLastChild, getLayoutManager, getLicense, getLicenseType, getLogo, getLogoIconName, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMnemonicsVisible, getModal, getName, getNative, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProgramName, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getResizable, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getSystemInformation, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTransientFor, getTranslatorCredits, getValign, getVersion, getVexpand, getVexpandSet, getVisible, getWebsite, getWebsiteLabel, getWidth, getWrapLicense.
Setters
setAccessibleParent, setApplication, setArtists, setAuthors, setCanFocus, setCanTarget, setChild, setChildVisible, setComments, setCopyright, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDecorated, setDefaultSize, setDefaultWidget, setDeletable, setDestroyWithParent, setDirection, setDisplay, setDocumenters, setFocus, setFocusChild, setFocusOnClick, setFocusVisible, setFocusable, setFontMap, setFontOptions, setHalign, setHandleMenubarAccel, setHasTooltip, setHexpand, setHexpandSet, setHideOnClose, setIconName, setLayoutManager, setLicense, setLicenseType, setLogo, setLogoIconName, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setModal, setName, setOpacity, setOverflow, setParent, setProgramName, setProperty, setReceivesDefault, setResizable, setSensitive, setSizeRequest, setStartupId, setStateFlags, setSystemInformation, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTransientFor, setTranslatorCredits, setValign, setVersion, setVexpand, setVexpandSet, setVisible, setWebsite, setWebsiteLabel, setWrapLicense.
addCreditSection
aboutDialogAddCreditSection Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Text |
|
-> [Text] |
|
-> m () |
Creates a new section in the "Credits" page.
getArtists
aboutDialogGetArtists Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m [Text] | Returns: A
|
Returns the names of the artists which are displayed in the credits page.
getAuthors
aboutDialogGetAuthors Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m [Text] | Returns: A
|
Returns the names of the authors which are displayed in the credits page.
getComments
aboutDialogGetComments Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The comments |
Returns the comments string.
getCopyright
aboutDialogGetCopyright Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The copyright string |
Returns the copyright string.
getDocumenters
aboutDialogGetDocumenters Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m [Text] | Returns: A
|
Returns the name of the documenters which are displayed in the credits page.
getLicense
aboutDialogGetLicense Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The license information |
Returns the license information.
getLicenseType
aboutDialogGetLicenseType Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m License | Returns: a |
Retrieves the license type.
getLogo
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Paintable) | Returns: the paintable displayed as
logo or |
Returns the paintable displayed as logo in the about dialog.
getLogoIconName
aboutDialogGetLogoIconName Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the icon name displayed as logo,
or |
Returns the icon name displayed as logo in the about dialog.
getProgramName
aboutDialogGetProgramName Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The program name |
Returns the program name displayed in the about dialog.
getSystemInformation
aboutDialogGetSystemInformation Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the system information |
Returns the system information that is shown in the about dialog.
getTranslatorCredits
aboutDialogGetTranslatorCredits Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The translator credits string |
Returns the translator credits string which is displayed in the credits page.
getVersion
aboutDialogGetVersion Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The version string |
Returns the version string.
getWebsite
aboutDialogGetWebsite Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The website URL |
Returns the website URL.
getWebsiteLabel
aboutDialogGetWebsiteLabel Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: The label used for the website link |
Returns the label used for the website link.
getWrapLicense
aboutDialogGetWrapLicense Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the license text in the about dialog is automatically wrapped.
new
:: (HasCallStack, MonadIO m) | |
=> m AboutDialog | Returns: a newly created |
Creates a new GtkAboutDialog
.
setArtists
aboutDialogSetArtists Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> [Text] |
|
-> m () |
Sets the names of the artists to be displayed in the "Credits" page.
setAuthors
aboutDialogSetAuthors Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> [Text] |
|
-> m () |
Sets the names of the authors which are displayed in the "Credits" page of the about dialog.
setComments
aboutDialogSetComments Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the comments string to display in the about dialog.
This should be a short string of one or two lines.
setCopyright
aboutDialogSetCopyright Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the copyright string to display in the about dialog.
This should be a short string of one or two lines.
setDocumenters
aboutDialogSetDocumenters Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> [Text] |
|
-> m () |
Sets the names of the documenters which are displayed in the "Credits" page.
setLicense
aboutDialogSetLicense Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the license information to be displayed in the about dialog.
If license
is NULL
, the license page is hidden.
setLicenseType
aboutDialogSetLicenseType Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> License |
|
-> m () |
Sets the license of the application showing the about dialog from a list of known licenses.
This function overrides the license set using
aboutDialogSetLicense
.
setLogo
:: (HasCallStack, MonadIO m, IsAboutDialog a, IsPaintable b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the logo in the about dialog.
setLogoIconName
aboutDialogSetLogoIconName Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the icon name to be displayed as logo in the about dialog.
setProgramName
aboutDialogSetProgramName Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the name to display in the about dialog.
If name
is not set, the string returned
by g_get_application_name()
is used.
setSystemInformation
aboutDialogSetSystemInformation Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the system information to be displayed in the about dialog.
If system_information
is NULL
, the system information
page is hidden.
setTranslatorCredits
aboutDialogSetTranslatorCredits Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the translator credits string which is displayed in the credits page.
The intended use for this string is to display the translator
of the language which is currently used in the user interface.
Using gettext()
, a simple way to achieve that is to mark the
string for translation:
c code
GtkWidget *about = gtk_about_dialog_new (); gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about), _("translator-credits"));
It is a good idea to use the customary msgid
“translator-credits”
for this purpose, since translators will already know the purpose of
that msgid
, and since GtkAboutDialog
will detect if “translator-credits”
is untranslated and omit translator credits.
setVersion
aboutDialogSetVersion Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the version string to display in the about dialog.
setWebsite
aboutDialogSetWebsite Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the URL to use for the website link.
setWebsiteLabel
aboutDialogSetWebsiteLabel Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the label to be used for the website link.
setWrapLicense
aboutDialogSetWrapLicense Source #
:: (HasCallStack, MonadIO m, IsAboutDialog a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the license text in the about dialog should be automatically wrapped.
Properties
artists
The people who contributed artwork to the program, as a NULL
-terminated
array of strings.
Each string may contain email addresses and URLs, which will be displayed as links.
constructAboutDialogArtists :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “artists
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogArtists :: (MonadIO m, IsAboutDialog o) => o -> m [Text] Source #
Get the value of the “artists
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #artists
setAboutDialogArtists :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m () Source #
Set the value of the “artists
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #artists:=
value ]
authors
The authors of the program, as a NULL
-terminated array of strings.
Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
constructAboutDialogAuthors :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “authors
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogAuthors :: (MonadIO m, IsAboutDialog o) => o -> m [Text] Source #
Get the value of the “authors
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #authors
setAboutDialogAuthors :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m () Source #
Set the value of the “authors
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #authors:=
value ]
comments
Comments about the program.
This string is displayed in a label in the main dialog, thus it should be a short explanation of the main purpose of the program, not a detailed list of features.
clearAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “comments
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#comments
constructAboutDialogComments :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “comments
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “comments
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #comments
setAboutDialogComments :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “comments
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #comments:=
value ]
copyright
Copyright information for the program.
clearAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “copyright
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#copyright
constructAboutDialogCopyright :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “copyright
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “copyright
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #copyright
setAboutDialogCopyright :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “copyright
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #copyright:=
value ]
documenters
The people documenting the program, as a NULL
-terminated array of strings.
Each string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
constructAboutDialogDocumenters :: (IsAboutDialog o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “documenters
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogDocumenters :: (MonadIO m, IsAboutDialog o) => o -> m [Text] Source #
Get the value of the “documenters
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #documenters
setAboutDialogDocumenters :: (MonadIO m, IsAboutDialog o) => o -> [Text] -> m () Source #
Set the value of the “documenters
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #documenters:=
value ]
license
The license of the program, as free-form text.
This string is displayed in a text view in a secondary dialog, therefore
it is fine to use a long multi-paragraph text. Note that the text is only
wrapped in the text view if the "wrap-license" property is set to TRUE
;
otherwise the text itself must contain the intended linebreaks.
When setting this property to a non-NULL
value, the
AboutDialog:licenseType property is set to
GTK_LICENSE_CUSTOM
as a side effect.
The text may contain links in this format <http://www.some.place/>
and email references in the form <mail-to@some.body>
, and these will
be converted into clickable links.
clearAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “license
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#license
constructAboutDialogLicense :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “license
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “license
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #license
setAboutDialogLicense :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “license
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #license:=
value ]
licenseType
The license of the program.
The GtkAboutDialog
will automatically fill out a standard disclaimer
and link the user to the appropriate online resource for the license
text.
If GTK_LICENSE_UNKNOWN
is used, the link used will be the same
specified in the AboutDialog:website property.
If GTK_LICENSE_CUSTOM
is used, the current contents of the
AboutDialog:license property are used.
For any other License
value, the contents of the
AboutDialog:license property are also set by this property as
a side effect.
constructAboutDialogLicenseType :: (IsAboutDialog o, MonadIO m) => License -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “license-type
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogLicenseType :: (MonadIO m, IsAboutDialog o) => o -> m License Source #
Get the value of the “license-type
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #licenseType
setAboutDialogLicenseType :: (MonadIO m, IsAboutDialog o) => o -> License -> m () Source #
Set the value of the “license-type
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #licenseType:=
value ]
logo
A logo for the about box.
If it is NULL
, the default window icon set with
windowSetDefaultIconName
will be used.
clearAboutDialogLogo :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “logo
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#logo
constructAboutDialogLogo :: (IsAboutDialog o, MonadIO m, IsPaintable a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “logo
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogLogo :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Paintable) Source #
Get the value of the “logo
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #logo
setAboutDialogLogo :: (MonadIO m, IsAboutDialog o, IsPaintable a) => o -> a -> m () Source #
Set the value of the “logo
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #logo:=
value ]
logoIconName
A named icon to use as the logo for the about box.
This property overrides the AboutDialog:logo property.
clearAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “logo-icon-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#logoIconName
constructAboutDialogLogoIconName :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “logo-icon-name
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “logo-icon-name
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #logoIconName
setAboutDialogLogoIconName :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “logo-icon-name
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #logoIconName:=
value ]
programName
The name of the program.
If this is not set, it defaults to the value returned by
g_get_application_name()
.
clearAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “program-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#programName
constructAboutDialogProgramName :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “program-name
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “program-name
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #programName
setAboutDialogProgramName :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “program-name
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #programName:=
value ]
systemInformation
Information about the system on which the program is running.
This information is displayed in a separate page, therefore it is fine to use a long multi-paragraph text. Note that the text should contain the intended linebreaks.
The text may contain links in this format <http://www.some.place/>
and email references in the form <mail-to@some.body>
, and these will
be converted into clickable links.
clearAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “system-information
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#systemInformation
constructAboutDialogSystemInformation :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “system-information
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “system-information
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #systemInformation
setAboutDialogSystemInformation :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “system-information
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #systemInformation:=
value ]
translatorCredits
Credits to the translators.
This string should be marked as translatable.
The string may contain email addresses and URLs, which will be displayed as links, see the introduction for more details.
clearAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “translator-credits
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#translatorCredits
constructAboutDialogTranslatorCredits :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “translator-credits
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “translator-credits
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #translatorCredits
setAboutDialogTranslatorCredits :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “translator-credits
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #translatorCredits:=
value ]
version
The version of the program.
clearAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “version
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#version
constructAboutDialogVersion :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “version
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “version
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #version
setAboutDialogVersion :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “version
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #version:=
value ]
website
The URL for the link to the website of the program.
This should be a string starting with http://
or https://
.
clearAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> m () Source #
Set the value of the “website
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#website
constructAboutDialogWebsite :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “website
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “website
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #website
setAboutDialogWebsite :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “website
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #website:=
value ]
websiteLabel
The label for the link to the website of the program.
constructAboutDialogWebsiteLabel :: (IsAboutDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “website-label
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogWebsiteLabel :: (MonadIO m, IsAboutDialog o) => o -> m (Maybe Text) Source #
Get the value of the “website-label
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #websiteLabel
setAboutDialogWebsiteLabel :: (MonadIO m, IsAboutDialog o) => o -> Text -> m () Source #
Set the value of the “website-label
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #websiteLabel:=
value ]
wrapLicense
Whether to wrap the text in the license dialog.
constructAboutDialogWrapLicense :: (IsAboutDialog o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “wrap-license
” property. This is rarely needed directly, but it is used by new
.
getAboutDialogWrapLicense :: (MonadIO m, IsAboutDialog o) => o -> m Bool Source #
Get the value of the “wrap-license
” property.
When overloading is enabled, this is equivalent to
get
aboutDialog #wrapLicense
setAboutDialogWrapLicense :: (MonadIO m, IsAboutDialog o) => o -> Bool -> m () Source #
Set the value of the “wrap-license
” property.
When overloading is enabled, this is equivalent to
set
aboutDialog [ #wrapLicense:=
value ]
Signals
activateLink
type AboutDialogActivateLinkCallback Source #
Emitted every time a URL is activated.
Applications may connect to it to override the default behaviour,
which is to call fileLauncherLaunch
.
afterAboutDialogActivateLink :: (IsAboutDialog a, MonadIO m) => a -> ((?self :: a) => AboutDialogActivateLinkCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activateLink signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
aboutDialog #activateLink callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onAboutDialogActivateLink :: (IsAboutDialog a, MonadIO m) => a -> ((?self :: a) => AboutDialogActivateLinkCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activateLink signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
aboutDialog #activateLink callback