v0.4.0
Gtk4 v0.4.0
This is a breaking release that introduces constructors automatically generated by GObject introspection. These accept keyword arguments that can be used to set properties during construction. This change fixes an annoying stack overflow error often encountered in the old constructor scheme.
A few constructors had to be changed to be compatible. Here are the most important breaking changes:
GtkBuilder
- previously used keyword arguments to set a filename to load or a string to load. Now useGtkBuilder(filename::AbstractString)
to load an XML file, orGtkBuilder(xml::AbstractString, -1)
to load a string.GtkFileFilter
- previously used keyword arguments to set a pattern, mimetype, and name. Now the constructor takespattern::String
andmimetype::String
as arguments. Use a keyword argument to set the "name" property.GtkCssProvider
- useGtkCssProvider(css::AbstractString)
to open a string orGtkCssProvider(nothing, filename::AbstractString)
to open a file.GtkImage
- a string argument loads a filename. The keyword based constructor foricon_name
is gone, but one can use a constructor inG_
instead.- If you use the argumentless
GtkWindow
constructor, you'll have to callshow()
to make the window appear.
Merged pull requests:
- GI-generated constructors (#27) (@jwahlstrand)
- re-enable x86 in CI (#28) (@jwahlstrand)