Class

GtkAssistant

deprecated: 4.10 

[]

Description [src]

final class Gtk.Assistant : Gtk.Window
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.Native, Gtk.Root, Gtk.ShortcutManager {
  /* No available fields */
}

GtkAssistant is used to represent a complex as a series of steps.

An example GtkAssistant

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 GtkAssistantPageType 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 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.

Deprecated since: 4.10

This widget will be removed in GTK 5.

[]

Hierarchy

hierarchy this GtkAssistant implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 implements_3 GtkNative this--implements_3 implements_4 GtkRoot this--implements_4 implements_5 GtkShortcutManager this--implements_5 ancestor_0 GtkWindow ancestor_0--this ancestor_1 GtkWidget ancestor_1--ancestor_0 ancestor_2 GInitiallyUnowned ancestor_2--ancestor_1 ancestor_3 GObject ancestor_3--ancestor_2
[]

Constructors

gtk_assistant_new

Creates a new GtkAssistant.

deprecated: 4.10 

[]

Instance methods

gtk_assistant_add_action_widget

Adds a widget to the action area of a GtkAssistant.

deprecated: 4.10 

gtk_assistant_append_page

Appends a page to the assistant.

deprecated: 4.10 

gtk_assistant_commit

Erases the visited page history.

deprecated: 4.10 

gtk_assistant_get_current_page

Returns the page number of the current page.

deprecated: 4.10 

gtk_assistant_get_n_pages

Returns the number of pages in the assistant.

deprecated: 4.10 

gtk_assistant_get_nth_page

Returns the child widget contained in page number page_num.

deprecated: 4.10 

gtk_assistant_get_page

Returns the GtkAssistantPage object for child.

deprecated: 4.10 

gtk_assistant_get_page_complete

Gets whether page is complete.

deprecated: 4.10 

gtk_assistant_get_page_title

Gets the title for page.

deprecated: 4.10 

gtk_assistant_get_page_type

Gets the page type of page.

deprecated: 4.10 

gtk_assistant_get_pages

Gets a list model of the assistant pages.

deprecated: 4.10 

gtk_assistant_insert_page

Inserts a page in the assistant at a given position.

deprecated: 4.10 

gtk_assistant_next_page

Navigate to the next page.

deprecated: 4.10 

gtk_assistant_prepend_page

Prepends a page to the assistant.

deprecated: 4.10 

gtk_assistant_previous_page

Navigate to the previous visited page.

deprecated: 4.10 

gtk_assistant_remove_action_widget

Removes a widget from the action area of a GtkAssistant.

deprecated: 4.10 

gtk_assistant_remove_page

Removes the page_num’s page from assistant.

deprecated: 4.10 

gtk_assistant_set_current_page

Switches the page to page_num.

deprecated: 4.10 

gtk_assistant_set_forward_page_func

Sets the page forwarding function to be page_func.

deprecated: 4.10 

gtk_assistant_set_page_complete

Sets whether page contents are complete.

deprecated: 4.10 

gtk_assistant_set_page_title

Sets a title for page.

deprecated: 4.10 

gtk_assistant_set_page_type

Sets the page type for page.

deprecated: 4.10 

gtk_assistant_update_buttons_state

Forces assistant to recompute the buttons state.

deprecated: 4.10 

Methods inherited from GtkWindow (55)
Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
Methods inherited from GtkNative (5)
Methods inherited from GtkRoot (3)
[]

Properties

Gtk.Assistant:pages

GListModel containing the pages.

Gtk.Assistant:use-header-bar

TRUE if the assistant uses a GtkHeaderBar for action buttons instead of the action-area.

deprecated: 4.10 

Properties inherited from GtkWindow (25)
Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
[]

Signals

Gtk.Assistant::apply

Emitted when the apply button is clicked.

deprecated: 4.10 

Gtk.Assistant::cancel

Emitted when then the cancel button is clicked.

deprecated: 4.10 

Gtk.Assistant::close

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.

deprecated: 4.10 

Gtk.Assistant::escape

The action signal for the Escape binding.

deprecated: 4.10 

Gtk.Assistant::prepare

Emitted when a new page is set as the assistant’s current page, before making the new page visible.

deprecated: 4.10 

Signals inherited from GtkWindow (5)
Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)