gtk4-builder-tool --3to4: produces invalid glade file
Steps to reproduce
- Run
gtk4-builder-tool simplify --3to4 --replace src/ui.glade
(file: ui.glade) - Run the application using that file
Current behavior
(process:63627): Gtk-ERROR **: 05:15:39.262: failed to add UI from file /home/romgrk/github/xedel/src/ui.glade: /home/romgrk/github/xedel/src/ui.glade:23:1 Unhandled tag: <packing>
Expected outcome
Produces a valid file
Version information
- GTK4
- ArchLinux
Additional information
The doc says:
Convert your ui files
A number of the changes outlined below affect .ui files. The gtk4-builder-tool simplify command can perform many of the necessary changes automatically, when called with the –3to4 option. You should always review the resulting changes.
The <requires> tag now supports for the “lib” attribute the “gtk” value only, instead of the “gtk+” one previously.
It is regretable that it doesn't provide more information than that. Similarly, other things are not listed on the migration guide, eg the disparition of GtkStyleContext.getDefault
, and which API to use as a replacement. It would be really nice for users of the Gtk library if the documentation could be more exhaustive and more helpful.
Edited by Rom Grk