jhass / crystal-gobject

gobject-introspection for Crystal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JeysonFlores opened this issue · comments

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?

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.

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

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

Yeah, it works now! Thanks!