gtk-fortran 4.2.0
This release offers interfaces to GTK 4.6.2 and GLib 2.72.1.
Added
- gtk-fortran can now be used as a simple fpm dependency (gtk4 branch only). See the gtkzero_fpm example. It implied some changes:
gtk-auto.f90
andgtkenums-auto.f90
are renamed with the.inc
extension.- Removed
mswindowsonly-auto.f90
andunixonly-auto.f90
, and addedapi_compatibility.f90
with the modulegtk_os_dependent
to keep API compatibility. plplot/plplot_extra_ndef.f90
renamedplplot_extra.f90
and moved tosrc/
.
examples/bazaar.f90
: the About button credits the authors of that file. The call togtk_about_dialog_set_license()
is replaced by the more convenientgtk_about_dialog_set_license_type()
.- A
tutorials/
directory contains the GTK 4 sources used in the Wiki first tutorial. src/gtk-fortran.f90
: prints the GTK and GLib version of the release.- A conda repository for gtk-4-fortran.
Changed
- Better handling of default compiler flags, using flags like
CMAKE_Fortran_FLAGS_RELEASE_INIT
(CMake>=3.7 required). A filecmake/DefaultFlags.cmake
was added. Backported to gtk3 branch. gtkbuilder2.f90
: replacedgtk_builder_add_from_file()
bygtk_builder_new_from_file()
.- The syntax was modernized in many places (Fortran 2008).
Fixed
g_application_run()
should be called with an array[c_null_ptr]
as third argument instead ofc_null_ptr
. Needed with the NAG Fortran compiler. Backported to gtk3 branch.examples/tests.f90
: loop undefined with ifort. And now usesg_variant_unref()
.- Various bug fixes.