Skip to content

Releases: hugopl/gtk4.cr

v0.17.0

11 Jul 19:18
898a6d7
Compare
Choose a tag to compare

Added

  • Functions receiving Gio::AsyncResultCallback now works, unless the _finish functions isn't too complex, see examples/file_dialog.cr.

Changed

  • Using GI-Crystal v0.23.x, See GI-Crystal changelog for more info.
  • Minimal crystal compiler version bumper to 1.6.0.

v0.16.1

24 Mar 19:25
Compare
Choose a tag to compare

Fixed

  • Workaround to fix compilation with GTK 4.14. This remove Gtk::PathPoint#get_curvature

v0.16.0

21 Nov 21:33
86e9fa9
Compare
Choose a tag to compare

Added

  • Add an example for Gtk::ListView using Gio::ListModel.

Changed

v0.14.0

16 Jun 18:27
Compare
Choose a tag to compare

Added

  • Added simple particles engine example using GSK API (#51).
  • Added Gdk::Display.default!, same as Gdk::Display.default.not_nil! (#53).

Fixed

  • Do not try to unref destroyed windows at finalize (#52).

Changed

v0.13.0

16 Apr 22:30
Compare
Choose a tag to compare

Added

  • Add Gtk::Widget#children helper method, thanks @hugopl.

Fixed

  • Fix crash related to order of initialization of widget templates, thanks @BlobCodes (#34)
  • Let gh-pages branch be orphan, so the repository doesn't store a ton of useless history for API docs, thanks @GeopJr (#38).
  • Update Ubuntu install instructions, thanks @aramvisser (#45).
  • Do not always require children parameter on Gtk::UiTemplate annotation, thanks @hugopl (#33).
  • Add support for UI templates from resource files, thanks @hugopl (#36).
  • Fix compilation with Harfbuzz 0.7, thanks @hugopl (#43)

Changed

  • Harfbuzz, Gio and Pango bindings were moved to different shards, GTK4 shard now depend on them, thanks @hugopl (#46).

v0.12.0

06 Sep 14:52
Compare
Choose a tag to compare

Added

  • Added overload Gtk::Snapshot#translate(x : Float32, y : Float32).
  • Added overload Gtk::Snapshot#append_color(color : Gdk::RGBA, x : Float32, y : Float32, width : Float32, height : Float32).
  • Added overload Gtk::Snapshot#push_repeat(bounds_x : Float32, bounds_y : Float32, bounds_width : Float32, bounds_height : Float32, child_bounds_x : Float32, child_bounds_y : Float32, child_bounds_width : Float32, child_bounds_height : Float32)
  • Added overload Gtk::Snapshot#save that receives a block and calls Gtk::Snapshot#restore at the end.

Fixed

  • Don't crash when instantiating Pango::FontMetrics.
  • Make possible to use Pango::AttrList and Pango::Attributes.

Changed

v0.11.1

04 Jul 04:07
Compare
Choose a tag to compare

Fixed

  • Fix compilation with HarfBuzz 4.4.1.

v0.11.0

01 Jul 19:34
Compare
Choose a tag to compare

Changed

Added

  • Added Gtk::Stack#has_child?(Gtk::Widget).
  • Added source_dir parameter to register_resource, thanks @GeopJr.
  • Added Pango::Layout#set_text(String), Pango::Layout#set_text(Bytes) and Pango::Layout#set_text(Bytes, Int32).
  • API documentation is now auto-updated, thanks @1player.

v0.10.0

04 Jun 20:38
Compare
Choose a tag to compare

Changed

  • Using GI-Crystal v0.12.x, See GI-Crystal changelog for more info.
  • Call abort when Gtk::Widget#template_child can't find the widget.

Added

  • Added Gtk::TreeSelection#select_row(Int32) sugar, to select a row.

v0.9.0

16 May 00:50
Compare
Choose a tag to compare

Changed

Added

  • Allow use of child objects defined in XML widget templates! See examples/widget_template.cr.