From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=BAYES_00,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!P4Kg93Jh9GlyqW4PVbld0g.user.46.165.242.75.POSTED!not-for-mail From: Fernando Oleo Blanco Newsgroups: comp.lang.ada Subject: Re: GtkAda for GTk4? Date: Mon, 14 Feb 2022 20:50:20 +0100 Organization: Aioe.org NNTP Server Message-ID: <20220214205020.4fbae030@linux.fritz.box> References: <1e07b1bf-d60c-41e4-92f1-0f652b48f8d3n@googlegroups.com> <32a576a3-933e-4db8-a26d-f506c48f9056n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="31356"; posting-host="P4Kg93Jh9GlyqW4PVbld0g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-suse-linux-gnu) X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:63520 List-Id: Am Sun, 13 Feb 2022 23:46:01 -0800 (PST) schrieb Emmanuel Briot : > I wrote that python script years ago, when the XML files that > describe the gtk+ API were actually pretty bad type-wise. The script > is full of special cases, and very ugly. I don't think anyone should > use it as a basis for binding to gtk 4, it would likely be much > better to restart from scratch. I believe the XML files have improved > significantly since then, and are used by more languages bindings, > too, so that could likely be simplified. > > Emmanuel This may be worth mentioning... Fortran also has a GTK binding [1]. It is also autogenerated with a Python script. As far as I can remember, the change from GTK3 to 4 was not too big. It did obviously require changes and a bit of elbow grease, but they had GTK4 support as soon as it became official. The actual code is present here [2]. This may serve as a comparison or reference for what may be needed. It is obvious that the Fortran people did have a different starting point and Fortran is a different language. I am just including it for reference. Cheers, Fer [1] https://github.com/vmagnin/gtk-fortran [2] https://github.com/vmagnin/gtk-fortran/tree/gtk4/src