Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,604
    • Issues 1,604
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 220
    • Merge requests 220
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !4683

widget: add gtk_widget_set_action_parent()

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Christian Hergert requested to merge wip/chergert/action-parent into main May 02, 2022
  • Overview 26
  • Commits 4
  • Pipelines 3
  • Changes 6

This adds a new function to the 4.8 ABI that allows setting an action parent for a widget. The action parent affects the action muxing so that instead of using the widgets direct ancestor, an alternate widget's action muxer may be used.

You may not set an action parent for a widget that is a direct descendant of your widget as that would cause cycles in action resolution.

You might find this API useful for situations where you want menus in headerbars to route through action muxers for the current document as well as toolbars or sidebars.

Fixes #4860

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/chergert/action-parent