[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