Gdk enumerations do not contain GType info in GIR

Bug #769256 reported by Eitan Isaacson
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTK+
Expired
Medium
gtk+3.0 (Ubuntu)
Fix Released
High
Martin Pitt
Oneiric
Fix Released
High
Martin Pitt

Bug Description

Gdk-3.0.{gir,typelib} omits GType info for enumerations. So the following script will fail:

#!/usr/bin/python
import pyatspi
from gi.repository import Gdk

Tags: a11y oneiric
Revision history for this message
Eitan Isaacson (eeejay) wrote :

Here is the upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=647729

Ultimately the issue surfaces in debian-style packages because the build dir is separate from the source tree.

Revision history for this message
Joanmarie (joanmarie-diggs-deactivatedaccount) wrote :

Aha, looks like I need to update my bug mail notifications as I don't seem to have gotten this notice.

But, yeah, this affects me along with all Orca users. Orca no longer runs in Oneiric now that introspection is being used. :-/

tags: added: a11y oneiric
Changed in gtk+3.0 (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in gtk+3.0 (Ubuntu):
milestone: none → ubuntu-11.10-beta-2
Revision history for this message
Martin Pitt (pitti) wrote :

Indeed, "diff -u /usr/share/gir-1.0/Gdk-3.0.gir /home/martin-scratch/gnome/share/gir-1.0/Gdk-3.0.gir" shows e. g.

- <enumeration name="EventType" c:type="GdkEventType">
+ <enumeration name="EventType"
+ glib:type-name="GdkEventType"
+ glib:get-type="gdk_event_type_get_type"
+ c:type="GdkEventType">

Changed in gtk+3.0 (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I sent a patch upstream, applying to our packaging bzr now.

Changed in gtk+3.0 (Ubuntu Oneiric):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+3.0 - 3.1.18-0ubuntu2

---------------
gtk+3.0 (3.1.18-0ubuntu2) oneiric; urgency=low

  * Add 101_gdkenumtypes.c_location.patch: Always generate gdk/gdkenumtypes.c
    in the source tree, and fix path in the introspection sources. With this,
    gdkenumtypes.c is correctly included with separate build trees, too. This
    fixes missing GTypes in the .gir when using a separate build tree.
    (LP: #769256)
  * Ship pregenerated documentation from upstream tarball again:
    - debian/rules: Drop --enable-gtk-doc again.
    - debian/control.in: Move gtk-doc-tools back to B-D-I.
    - debian/libgtk-3-doc.install.in, debian/libgail-3-doc.install: Update
      origins to install from source tree.
    - (LP: #842543)
 -- Martin Pitt <email address hidden> Thu, 08 Sep 2011 12:45:18 +0200

Changed in gtk+3.0 (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in gtk:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in gtk:
status: Confirmed → Expired
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.