jhass / crystal-gobject

gobject-introspection for Crystal
BSD 3-Clause "New" or "Revised" License
127 stars 13 forks source link

How can I import other GObject based libraries like Handy or Granite? #84

Closed JeysonFlores closed 3 years ago

JeysonFlores commented 3 years ago

I saw a snippet in an old issue, something like

require "gobject"
require_gobject "Granite"

But this doesn't work, it throws a lot of error stuff. Does somebody have an idea?

jhass commented 3 years ago

Granite has an error in its GIR I think, it references Granite.GraniteServicesSettingsSerializable but only defines ServicesSettingsSerializable as far as I can tell. At least gobject-introspection is unable to resolve the reference.

jhass commented 3 years ago

Handy seems to load up fine for me, at least the minimal example of just loading it.

jhass commented 3 years ago

The last two commits should get Granite into the same state of the binding being syntactically valid.

JeysonFlores commented 3 years ago

Yeah, it works now! Thanks!