Next: , Previous: aspect-frame, Up: Widgets


6.2.6 assistant

— Class: assistant

Superclass: gtk-window atk-implementor-iface buildable

A assistant is a widget used to represent a generally complex operation splitted in several steps, guiding the user through its pages and controlling the page flow to collect the necessary data.

Slots:

Signals:

— Method: assistant-nth-page
     (assistant-nth-page assistant page-number) => page-widget

Returns the child widget (a widget) contained in page number page-number (an integer).

— Method: assistant-append-page
     (assistant-append-page assistant page)

Appends a page (a widget) to the assistant (a assistant).

— Method: assistant-prepend-page
     (assistant-prepend-page assistant page)

Prepends a page (a widget) to the assistant (a assistant).

— Method: assistant-insert-page
     (assistant-insert-page assistant page position) => page-number

Inserts a page (a widget) in the assistant (a assistant) at a given position. position is the index (starting at 0) at which to insert the page, or -1 to append the page. Returns the index of inserted page.

— Method: assistant-add-action-widget
     (assistant-add-action-widget assistant widget)

Adds the widget (a widget) to the action area of a assistant (a assistant).

— Method: assistant-remove-action-widget
     (assistant-remove-action-widget assistant widget)

Removes the widget (a widget) from the action area of a assistant (a assistant).

— Method: assistant-update-buttons-state
     (assistant-update-buttons-state assistant)

Forces assistant (a assistant) to recompute the buttons state.

GTK+ automatically takes care of this in most situations, e.g. when the user goes to a different page, or when the visibility or completeness of a page changes.

One situation where it can be necessary to call this function is when changing a value on the current page affects the future page flow of the assistant.