Assistant could use a signal to indicate a page is being shown
Submitted by Jeroen Hoek
Link to original bug (#570446)
Description
Currently the Assistant has two signals that are of use to developers to prepare the individual pages and perform actions.
"prepare" - shown just before a page is shown to the user. "apply" - triggered when the user clicks "apply".
A common action for the Assistant is to show the progress of some action on the progress page. However, if the developer chooses to perform the actions when one of the above signals is triggered, the action gets performed before the progress page is shown.
What I am currently doing is, hooking up to the "expose" event of a widget unique to the progress page, and have that trigger my action which updates a progressbar on that page. Of course, I only trigger it on the first expose after the "prepare" signal for the progress page. This works quite well, but isn't very elegant.
For the sake of legible code and a clear API, I would suggest a new signal for the GTKAssistant that triggers whenever a page is actually exposed and shown to the user, as opposed to "about to be shown". It could be a counterpart to "prepare", passing along the page to the callback.
Version: 3.22.x