fpaquet / gtksheet

A spreadsheet widget for Gtk+
http://fpaquet.github.io/gtksheet/
Other
27 stars 9 forks source link

GtkSheet misreports its own introspection version #23

Closed ivanbakel closed 4 years ago

ivanbakel commented 4 years ago

This came about trying to use haskell-gi to autogenerate bindings to GtkSheet using the introspection features.

GtkSheet seems to conflictingly report its own version as 4.3.2 in files and 4.0 in filenames. This apparently breaks the gir repository, which is unable to find the .typelib file for GtkSheet with the (reported) version 4.3.2, but is able to find the one with version 4.0, though it then complains that there's a version mismatch.

This can be tested with

g-ir-inspect GtkSheet --version=4.3.2 --print-typelibs

Which fails, not finding the .typelib file, and

g-ir-inspect GtkSheet --version=4.0 --print-typelibs

Which initially succeeds, but then errors as the .typelib contains the wrong version number.

ivanbakel commented 4 years ago

This can be solved by renaming the .typelib file to have the correct version in the name - 4.3.2. This works as normal, even while the gir file has version 4.0 in the name.

arunisaac commented 4 years ago

I ran into the same issue when using guile-gi. I am working around it for now by renaming the typelib file as ivanbakel suggests.

fpaquet commented 4 years ago

Ist this related to issue #13 ?

arunisaac commented 4 years ago

I don't know what the gir file in #13 is for, but certainly the typelib has the wrong version in its filename.

fpaquet commented 4 years ago

Thank you for reporting. I will check it out when making next release.

fpaquet commented 4 years ago

With meson build, typelib file is named GtkSheet-4.3.4.typelib and g-ir-inspect is working. When using ./configure, output files have wrong names.

fpaquet commented 4 years ago

I found a way to fix hardcoded gir filenames in Makefile.am: https://stackoverflow.com/questions/34205092/autotool-automake-output-executable-filename-with-version

fpaquet commented 4 years ago

pushed fix to branch gtk3_fixes

To git@github.com:fpaquet/gtksheet.git b148681..7c8078c gtk3_fixes -> gtk3_fixes