There is no GObject introspection for Granite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Granite |
Fix Released
|
Medium
|
Devid Antonio Filoni | ||
granite (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have noticed that you do not provide gobject introspection.
There is a gobject-
This is a big problem because it does not allow using Granite in Python, Javascript or any other gir aware programing language.
There was a question about using Granite in Python in Scratch answers, where the proposed answer was
import gee.repository.
This is of course a bad answer for two reasons:
1. It is gi.repository
2. There is no gobject introspection data for python to use Granite
So, to sum things up.
You will need to change your build process to use valac to generate the .gir file
Pass --gir Granite-1.0.gir to valac
And then call the g-ir-compiler like :
g-ir-compiler --shared-
/usr/share/gir-1.0 is where .gir files are stored
I am not sure where are .typelib files stored
Changed in granite (Ubuntu): | |
status: | New → Confirmed |
affects: | ubuntu → granite (Ubuntu) |
Changed in granite: | |
status: | Incomplete → Fix Released |
assignee: | nobody → Devid Antonio Filoni (d.filoni) |
milestone: | none → 0.2 |
importance: | Undecided → Medium |
Changed in granite: | |
milestone: | 0.2 → luna-beta2 |
Changed in granite (Ubuntu): | |
status: | Fix Committed → Fix Released |
In the second sentence, I mean gobject- introspedtion folder.