Sets our main struct and passes it to the parent class.
Creates a new gtk.AboutDialog
Creates a new section in the Credits page.
The signal which gets emitted to activate a URI. Applications may connect to it to override the default behaviour, which is to call gtk_show_uri_on_window().
Get the main Gtk struct
Returns the string which are displayed in the artists tab of the secondary credits dialog.
Returns the string which are displayed in the authors tab of the secondary credits dialog.
Returns the comments string.
Returns the copyright string.
Returns the string which are displayed in the documenters tab of the secondary credits dialog.
Returns the license information.
Retrieves the license set using AboutDialog.setLicenseType
Returns the pixbuf displayed as logo in the about dialog.
Returns the icon name displayed as logo in the about dialog.
Returns the program name displayed in the about dialog.
the main Gtk struct as a void*
Returns the translator credits string which is displayed in the translators tab of the secondary credits dialog.
Returns the version string.
Returns the website URL.
Returns the label used for the website link.
Returns whether the license text in about is automatically wrapped.
Sets the strings which are displayed in the artists tab of the secondary credits dialog.
Sets the strings which are displayed in the authors tab of the secondary credits dialog.
Sets the comments string to display in the about dialog. This should be a short string of one or two lines.
Sets the copyright string to display in the about dialog. This should be a short string of one or two lines.
Sets the strings which are displayed in the documenters tab of the secondary credits dialog.
Sets the license information to be displayed in the secondary license dialog. If license is NULL, the license button is hidden.
Sets the license of the application showing the about dialog from a list of known licenses.
Sets the pixbuf to be displayed as logo in the about dialog. If it is NULL, the default window icon set with Window.setDefaultIcon will be used.
Sets the pixbuf to be displayed as logo in the about dialog. If it is NULL, the default window icon set with Window.setDefaultIcon will be used.
Sets the name to display in the about dialog. If this is not set, it defaults to g_get_application_name().
Sets the translator credits string which is displayed in the translators tab of the secondary credits dialog.
Sets the version string to display in the about dialog.
Sets the URL to use for the website link.
Sets the label to be used for the website link.
Sets whether the license text in about is automatically wrapped.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the action area of dialog.
Returns the content area of dialog.
Adds an activatable widget to the action area of a gtk.Dialog, connecting a signal handler that will emit the response signal on the dialog when the widget is activated. The widget is appended to the end of the dialog’s action area. If you want to add a non-activatable widget, simply pack it into the action_area field of the gtk.Dialog struct.
Adds a button with the given text and sets things up so that clicking the button will emit the response signal with the given response_id. The button is appended to the end of the dialog’s action area. The button widget is returned, but usually you don’t need it.
Returns the header bar of dialog. Note that the headerbar is only used by the dialog if the use-header-bar property is TRUE.
Gets the response id of a widget in the action area of a dialog.
Gets the widget button that uses the given response ID in the action area of a dialog.
Emits the response signal with the given response ID. Used to indicate that the user has responded to the dialog in some way; typically either you or Dialog.run will be monitoring the ::response signal and take appropriate action.
Blocks in a recursive main loop until the dialog either emits the response signal, or is destroyed. If the dialog is destroyed during the call to Dialog.run, Dialog.run returns GTK_RESPONSE_NONE Otherwise, it returns the response ID from the ::response signal emission.
Sets an alternative button order. If the gtk-alternative-button-order setting is set to TRUE, the dialog buttons are reordered according to the order of the response ids in new_order.
Sets the last widget in the dialog’s action area with the given response_id as the default widget for the dialog. Pressing “Enter” normally activates the default widget.
Calls gtk_widget_set_sensitive (widget, setting) for each widget in the dialog’s action area with the given response_id. A convenient way to sensitize/desensitize dialog buttons.
The ::close signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user uses a keybinding to close the dialog.
Emitted when an action widget is clicked, the dialog receives a delete event, or the application programmer calls Dialog.response. On a delete event, the response ID is GTK_RESPONSE_DELETE_EVENT Otherwise, it depends on which action widget was clicked.
Returns TRUE if dialogs are expected to use an alternative button order on the screen screen. See Dialog.setAlternativeButtonOrder for more details about alternative button order.
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 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:
It is also possible to show a gtk.AboutDialog like any other gtk.Dialog, e.g. using Dialog.run. In this case, you might need to know that the “Close” button returns the GTK_RESPONSE_CANCEL response id.