There is no GObject introspection for Granite

Bug #1034997 reported by Aleksandar Jovanov
16
This bug affects 3 people
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-introspection but it is empty.

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.Granite

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-library=libgranite.so --output=granite-1.0.typelib granite-1.0.gir

/usr/share/gir-1.0 is where .gir files are stored
I am not sure where are .typelib files stored

Revision history for this message
Aleksandar Jovanov (ajovanov93) wrote :

In the second sentence, I mean gobject-introspedtion folder.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Revision history for this message
Book 'em Dano (heymrdjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in granite.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://help.ubuntu.com/community/ReportingBugs.

Changed in granite (Ubuntu):
status: New → Confirmed
Book 'em Dano (heymrdjd)
affects: ubuntu → granite (Ubuntu)
Revision history for this message
Davide Depau (depau) wrote :

I noticed that the required files exist, but they are not detected by Python...
For example, /usr/lib/girepository-1.0/Granite-0.1.1.typelib exists; /usr/share/gir-1.0/Granite.0.1.1.gir exists...

I'm using quantal, and I installed Granite using Elementary Dev PPA.

Changed in granite (Ubuntu):
status: New → Confirmed
Changed in granite:
status: New → Confirmed
Revision history for this message
Davide Depau (depau) wrote :

Now there's a new package, gir1.2-granite-1.0.
It works.

Revision history for this message
zodman (zodman) wrote :

the instrospection it is added this bug will be closed

Revision history for this message
Cody Garver (codygarver) wrote :

This bug was fixed in the packaging? Around revision 38? lp:~elementary-os/granite/deb-packaging

Changed in granite:
status: Confirmed → Incomplete
Revision history for this message
Davide Depau (depau) wrote :

Yes, it was. You can mark the bug as Fix Released.
Thanks.

Cody Garver (codygarver)
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
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

This bug should be fixed in version "0.3.0~bzr734-1"

Please reopen it if you still experience issues.

Changed in granite (Ubuntu):
status: Confirmed → Fix Committed
Yangfl (mmyangfl)
Changed in granite (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.