11.23Class GtkAboutDialog

Display information about an application

Class GtkAboutDialog

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 dialog often contain links and email addresses. GtkAboutDialog supports this by offering global hooks, which are called when the user clicks on a link or email address, see set_email_hook() and set_url_hook(). Email addresses in the authors, documenters and artists properties are recognized by looking for , URLs are recognized by looking for http:url, with url extending to the next space, tab or line break.

[...]

Methods
get_artistsReturns the string which are displayed in the artists tab of the secondary credits dialog.
get_authorsReturns the string which are displayed in the authors tab of the secondary credits dialog.
get_commentsReturns the comments string.
get_copyrightReturns the copyright string.
get_documentersReturns the string which are displayed in the documenters tab of the secondary credits dialog.
get_licenseReturns the license information
get_logoReturns the pixbuf displayed as logo in the about dialog.
get_logo_icon_nameReturns the icon name displayed as logo in the about dialog.
get_nameReturns the program name displayed in the about dialog.
get_program_nameReturns the program name displayed in the about dialog.
get_translators_creditsReturns the translator credits string which is displayed in the translators tab of the secondary credits dialog.
get_versionReturns the version string.
get_websiteReturns the website URL.
get_website_labelReturns the label used for the website link.
get_wrap_licenseReturns whether the license text in about is automatically wrapped.
set_artistsSets the strings which are displayed in the artists tab of the secondary credits dialog.
set_authorsSets the strings which are displayed in the authors tab of the secondary credits dialog.
set_commentsSets the comments string to display in the about dialog.
set_copyrightSets the copyright string to display in the about dialog.
set_documentersSets the strings which are displayed in the documenters tab of the secondary credits dialog.
set_email_hookInstalls a global function to be called whenever the user activates an email link in an about dialog.
set_licenseSets the license information to be displayed in the secondary license dialog.
set_logoSets the pixbuf to be displayed as logo in the about dialog.
set_logo_icon_nameSets the pixbuf to be displayed as logo in the about dialog.
set_nameSets the name to display in the about dialog.
set_program_nameSets the name to display in the about dialog.
set_translator_creditsSets the translator credits string which is displayed in the translators tab of the secondary credits dialog.
set_url_hookInstalls a global function to be called whenever the user activates a URL link in an about dialog.
set_versionSets the version string to display in the about dialog.
set_websiteSets the URL to use for the website link.
set_website_labelSets the label to be used for the website link. It defaults to the website URL.
set_wrap_licenseSets whether the license text in about is automatically wrapped.

Methods

get_artists

Returns the string which are displayed in the artists tab of the secondary credits dialog.

GtkAboutDialog.get_artists()
Returnstring array containing the artists.

get_authors

Returns the string which are displayed in the authors tab of the secondary credits dialog.

GtkAboutDialog.get_authors()
ReturnA string array containing the authors.

get_comments

Returns the comments string.

GtkAboutDialog.get_comments()
ReturnThe comments.

get_copyright

Returns the copyright string.

GtkAboutDialog.get_copyright()
ReturnThe copyright string.

get_documenters

Returns the string which are displayed in the documenters tab of the secondary credits dialog.

GtkAboutDialog.get_documenters()
Returnstring array containing the documenters.

get_license

Returns the license information

GtkAboutDialog.get_license()
ReturnThe license information.

get_logo

Returns the pixbuf displayed as logo in the about dialog.

GtkAboutDialog.get_logo()
Returnthe pixbuf displayed as logo (or nil).

get_logo_icon_name

Returns the icon name displayed as logo in the about dialog.

GtkAboutDialog.get_logo_icon_name()
Returnthe icon name displayed as logo.

get_name

Returns the program name displayed in the about dialog.

GtkAboutDialog.get_name()
ReturnThe program name.

get_name has been deprecated since version 2.12 and should not be used in newly-written code. Use get_program_name() instead.

get_program_name

Returns the program name displayed in the about dialog.

GtkAboutDialog.get_program_name()
ReturnThe program name.

get_translators_credits

Returns the translator credits string which is displayed in the translators tab of the secondary credits dialog.

GtkAboutDialog.get_translators_credits()
ReturnThe translator credits string.

get_version

Returns the version string.

GtkAboutDialog.get_version()
ReturnThe version string.

get_website

Returns the website URL.

GtkAboutDialog.get_website()
ReturnThe website URL.

get_website_label

Returns the label used for the website link.

GtkAboutDialog.get_website_label()
ReturnThe label used for the website link.

get_wrap_license

Returns whether the license text in about is automatically wrapped.

GtkAboutDialog.get_wrap_license()
Returntrue if the license text is wrapped

set_artists

Sets the strings which are displayed in the artists tab of the secondary credits dialog.

GtkAboutDialog.set_artists( artists )
artists array of strings

set_authors

Sets the strings which are displayed in the authors tab of the secondary credits dialog.

GtkAboutDialog.set_authors( authors )
authors array of strings

set_comments

Sets the comments string to display in the about dialog.

GtkAboutDialog.set_comments( comments )
comments a comments string (or nil).

This should be a short string of one or two lines.

set_copyright

Sets the copyright string to display in the about dialog.

GtkAboutDialog.set_copyright( copyright )
copyright the copyright string (or nil).

This should be a short string of one or two lines.

set_documenters

Sets the strings which are displayed in the documenters tab of the secondary credits dialog.

GtkAboutDialog.set_documenters( documenters )
documenters array of strings.

set_email_hook

Installs a global function to be called whenever the user activates an email link in an about dialog.

GtkAboutDialog.set_email_hook( func, data )
func a function to call when an email link is activated, or nil.
data data to pass to func, or nil.

The function will get the dialog object as first parameter, the activated link as second parameter (string), and user data as third parameter.

Since 2.18 there exists a default function which uses gtk_show_uri(). To deactivate it, you can pass NULL for func.

set_license

Sets the license information to be displayed in the secondary license dialog.

GtkAboutDialog.set_license( license )
license the license information or nil.

If license is nil, the license button is hidden.

set_logo

Sets the pixbuf to be displayed as logo in the about dialog.

GtkAboutDialog.set_logo( logo )
logo a GdkPixbuf, or nil.

If it is nil, the default window icon set with gtk_window_set_default_icon() will be used.

set_logo_icon_name

Sets the pixbuf to be displayed as logo in the about dialog.

GtkAboutDialog.set_logo_icon_name( icon_name )
icon_name an icon name, or nil.

If it is nil, the default window icon set with gtk_window_set_default_icon() will be used.

set_name

Sets the name to display in the about dialog.

GtkAboutDialog.set_name( name )
name the program name (or nil).

If this is not set, it defaults to g_get_application_name().

set_name has been deprecated since version 2.12 and should not be used in newly-written code. Use set_program_name() instead.

set_program_name

Sets the name to display in the about dialog.

GtkAboutDialog.set_program_name( name )
name the program name

If this is not set, it defaults to g_get_application_name().

set_translator_credits

Sets the translator credits string which is displayed in the translators tab of the secondary credits dialog.

GtkAboutDialog.set_translator_credits( translator_credits )
translator_credits the translator credits (or nil).

set_url_hook

Installs a global function to be called whenever the user activates a URL link in an about dialog.

GtkAboutDialog.set_url_hook( func, data )
func a function to call when a URL link is activated, or nil.
data data to pass to func, or nil.

The function will get the dialog object as first parameter, the activated link as second parameter (string), and user data as third parameter.

Since 2.18 there exists a default function which uses gtk_show_uri(). To deactivate it, you can pass NULL for func.

set_version

Sets the version string to display in the about dialog.

GtkAboutDialog.set_version( the )
the version string (or nil).

set_website

Sets the URL to use for the website link.

GtkAboutDialog.set_website( a )
a URL string starting with "http:" (or nil).

Note that that the hook functions need to be set up before calling this function.

set_website_label

Sets the label to be used for the website link. It defaults to the website URL.

GtkAboutDialog.set_website_label( website_label )
website_label the label used for the website link

set_wrap_license

Sets whether the license text in about is automatically wrapped.

GtkAboutDialog.set_wrap_license( wrap_license )
wrap_license wether to wrap the license
Made with http://www.falconpl.org