Skip to content

GitLab

  • Menu
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,437
    • Issues 1,437
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 242
    • Merge requests 242
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #987

Closed
Open
Created Dec 03, 2017 by Bugzilla@bugzilla-migration💬Reporter

[patch]: GtkBuilder does not accept an id for "item" elements

Submitted by Christian Schoenebeck

Assigned to GtkBuilder maintainers

Link to original bug (#791175)

Description

Created attachment 364864 Accept id for item elements

I noticed that the current Gtk Builder XML parser does not accept an id for "item" elements. Please consider the attached patch to address this.

Background: it should be possible to query menu items at runtime to change their labels (text) at any time.

The attached patch is against Gtk+ 3.91.2, but can certainly be applied against latest git master head as well.

See also:

https://mail.gnome.org/archives/gtkmm-list/2017-November/msg00001.html

https://mail.gnome.org/archives/gtk-devel-list/2017-November/msg00002.html

This issue should IMO be fixed before the first official Gtk+ 4 release, because otherwise it will be impossible to update i.e. the text of menu items at runtime using the Gtk+4 branch.

Patch 364864, "Accept id for item elements":
gtk-builder-item-id.patch

Version: 3.93.x

Assignee
Assign to
Time tracking