Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gtk
gtk
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,142
    • Issues 1,142
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 151
    • Merge Requests 151
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #312

Closed
Open
Created Feb 04, 2009 by bugzilla-migration@bugzilla-migrationReporter

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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None