On Sat, 15 Feb 2020 18:07:17 +0100, Mike Wey wrote:
On 15-02-2020 09:38, Mark Summerfield wrote:
Is there any reason I should prefer one to the other?
Are there any good up-to-date books on GtkD? (Or on Gtk, but that are easy to understand in terms of D?)
The Gtk2-style with Main.init and Main.run will be removed in GTK4 so
the Gtk3-style is preferred for new projects. All the demos in the GtkD
repo use this style.
OK, I'll use the examples (esp. TestWindow) as models. I wish TestWindow had been called gtkd-demo or similar, since that's what it seems to be.
However, grepping through I can't see any that handle exit (e.g., to allow for handling unsaved changes) except by using Main.quit() or core.stdc.stdlib.exit(): surely there's a nicer way?
I don't know of any good books about gtkd, Ron's blog is probably the
best source of information about gtkd. Gerald Nunn also made some good
blog posts when he was working on Tilix.
Thanks, I'll read that.
P.S. I've removed the duplicate posts, it seems that vibenews/vibe.d has
issues with mongodb 4.0. I've downgraded to 3.6 and commented out a few
database upgrades vibenews tries at startup, and it should be running
Thanks for removing them.
(Had another error so hopefully this isn't duplicated!)