AboutDialog
open class AboutDialog : Dialog, AboutDialogProtocol
The GtkAboutDialog offers a simple way to display information about
a program like its 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 gtk_show_uri_on_window()
when a user clicks one. The behaviour can be overridden with the
GtkAboutDialog::activate-link signal.
To specify a person with an email address, use a string like “Edgar Allan Poe <edgar`poe.com`>”. To specify a website with a title, use a string like “GTK+ team http://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 Language Example):
GdkPixbuf *example_logo = gdk_pixbuf_new_from_file ("./logo.png", NULL);
gtk_show_about_dialog (NULL,
"program-name", "ExampleCode",
"logo", example_logo,
"title", _("About ExampleCode"),
NULL);
It is also possible to show a GtkAboutDialog like any other GtkDialog,
e.g. using gtk_dialog_run(). In this case, you might need to know that
the “Close” button returns the GTK_RESPONSE_CANCEL response id.
The AboutDialog type acts as a reference-counted owner of an underlying GtkAboutDialog instance.
It provides the methods that can operate on this data type through AboutDialogProtocol conformance.
Use AboutDialog as a strong reference or owner of a GtkAboutDialog instance.
-
Designated initialiser from the underlying `C` data type.This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the
AboutDialoginstance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkAboutDialog>)Parameters
oppointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkAboutDialog>)Parameters
oppointer to the underlying object
-
Optional initialiser from a non-mutating
gpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)Parameters
opgpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)Parameters
oppointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkAboutDialog>?)Parameters
oppointer to the underlying object
-
Optional initialiser from the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkAboutDialog>?)Parameters
oppointer to the underlying object
-
Designated initialiser from the underlying
Cdata type. Will retainGtkAboutDialog. i.e., ownership is transferred to theAboutDialoginstance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkAboutDialog>)Parameters
oppointer to the underlying object
-
Reference intialiser for a related type that implements
AboutDialogProtocolWill retainGtkAboutDialog.Declaration
Swift
@inlinable public init<T>(aboutDialog other: T) where T : AboutDialogProtocolParameters
otheran instance of a related type that implements
AboutDialogProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init<T>(cPointer p: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe typed, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init<T>(retainingCPointer cPointer: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init(raw p: UnsafeRawPointer)Parameters
praw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init(retainingRaw raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable public required init(raw p: UnsafeMutableRawPointer)Parameters
pmutable raw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable required public init(retainingRaw raw: UnsafeMutableRawPointer)Parameters
rawmutable raw pointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init(opaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
AboutDialogProtocol.Declaration
Swift
@inlinable override public init(retainingOpaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Creates a new
GtkAboutDialog.Declaration
Swift
@inlinable override public init()
View on GitHub
Install in Dash
AboutDialog Class Reference