Sets our main struct and passes it to the parent class.
Creates a new GtkAssistant.
Adds a widget to the action area of a GtkAssistant.
Emitted when the apply button is clicked.
Emitted when then the cancel button is clicked.
Emitted either when the close button of a summary page is clicked, or when the apply button in the last page in the flow (of type %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
The action signal for the Escape binding.
Emitted when a new page is set as the assistant's current page, before making the new page visible.
Appends a page to the @assistant.
Erases the visited page history.
Get the main Gtk struct
Returns the page number of the current page.
Returns the number of pages in the @assistant
Returns the child widget contained in page number @page_num.
Returns the GtkAssistantPage object for @child.
Gets whether @page is complete.
Gets the title for @page.
Gets the page type of @page.
Gets a list model of the assistant pages.
the main Gtk struct as a void*
Inserts a page in the @assistant at a given position.
Navigate to the next page.
Prepends a page to the @assistant.
Navigate to the previous visited page.
Removes a widget from the action area of a GtkAssistant.
Removes the @page_num’s page from @assistant.
Switches the page to @page_num.
Sets the page forwarding function to be @page_func.
Sets whether @page contents are complete.
Sets a title for @page.
Sets the page type for @page.
Forces @assistant to recompute the buttons state.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the fallback icon name for windows.
Returns a list of all existing toplevel windows.
Returns a list of all existing toplevel windows.
Sets whether the window should request startup notification.
Sets an icon to be used as fallback.
Opens or closes the interactive debugger.
Requests that the window is closed.
Drop the internal reference GTK holds on toplevel windows.
Asks to place @window in the fullscreen state.
Asks to place @window in the fullscreen state on the given @monitor.
Gets the GtkApplication associated with the window.
Gets the child widget of @window.
Returns whether the window has been set to have decorations.
Gets the default size of the window.
Returns the default widget for @window.
Returns whether the window has been set to have a close button.
Returns whether the window will be destroyed with its transient parent.
Retrieves the current focused widget within the window.
Gets whether “focus rectangles” are supposed to be visible.
Returns the group for @window.
Returns whether this window reacts to F10 key presses by activating a menubar it contains.
Returns whether the window will be hidden when the close button is clicked.
Returns the name of the themed icon for the window.
Gets whether mnemonics are supposed to be visible.
Returns whether the window is modal.
Gets the value set by gtk_window_set_resizable().
Retrieves the title of the window.
Returns the custom titlebar that has been set with gtk_window_set_titlebar().
Fetches the transient parent for this window.
Returns whether @window has an explicit window group.
Returns whether the window is part of the current active toplevel.
Retrieves the current fullscreen state of @window.
Retrieves the current maximized state of @window.
Asks to maximize @window, so that it fills the screen.
Asks to minimize the specified @window.
Presents a window to the user.
Presents a window to the user.
Sets or unsets the GtkApplication associated with the window.
Sets the child widget of @window.
Sets whether the window should be decorated.
Sets the default size of a window.
Sets the default widget.
Sets whether the window should be deletable.
If @setting is %TRUE, then destroying the transient parent of @window will also destroy @window itself.
Sets the GdkDisplay where the @window is displayed.
Sets the focus widget.
Sets whether “focus rectangles” are supposed to be visible.
Sets whether this window should react to F10 key presses by activating a menubar it contains.
If @setting is %TRUE, then clicking the close button on the window will not destroy it, but only hide it.
Sets the icon for the window from a named themed icon.
Sets whether mnemonics are supposed to be visible.
Sets a window modal or non-modal.
Sets whether the user can resize a window.
Sets the startup notification ID.
Sets the title of the GtkWindow.
Sets a custom titlebar for @window.
Dialog windows should be set transient for the main application window they were spawned from. This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. [ctor@Gtk.Dialog.new_with_buttons] and other convenience functions in GTK will sometimes call gtk_window_set_transient_for() on your behalf.
Asks to remove the fullscreen state for @window, and return to its previous state.
Asks to unmaximize @window.
Asks to unminimize the specified @window.
Emitted when the user activates the default widget of @window.
Emitted when the user activates the currently focused widget of @window.
Emitted when the user clicks on the close button of the window.
Emitted when the user enables or disables interactive debugging.
emitted when the set of accelerators or mnemonics that are associated with @window changes.
GtkAssistant is used to represent a complex as a series of steps.
Each step consists of one or more pages. GtkAssistant guides the user through the pages, and controls the page flow to collect the data needed for the operation.
GtkAssistant handles which buttons to show and to make sensitive based on page sequence knowledge and the [enum@Gtk.AssistantPageType] of each page in addition to state information like the *completed* and *committed* page statuses.
If you have a case that doesn’t quite fit in GtkAssistants way of handling buttons, you can use the %GTK_ASSISTANT_PAGE_CUSTOM page type and handle buttons yourself.
GtkAssistant maintains a GtkAssistantPage object for each added child, which holds additional per-child properties. You obtain the GtkAssistantPage for a child with [method@Gtk.Assistant.get_page].
GtkAssistant as GtkBuildable
The GtkAssistant implementation of the GtkBuildable interface exposes the @action_area as internal children with the name “action_area”.
To add pages to an assistant in GtkBuilder, simply add it as a child to the GtkAssistant object. If you need to set per-object properties, create a GtkAssistantPage object explicitly, and set the child widget as a property on it.
CSS nodes
GtkAssistant has a single CSS node with the name window and style class .assistant.