pygtk should not add an interface to a class that has already been initialised

Bug #1129309 reported by Marc Deslauriers
28
This bug affects 12 people
Affects Status Importance Assigned to Milestone
pygobject
Fix Released
High
pygobject-2 (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

pygtk applications in raring are getting a warning similar to the following:

/usr/lib/python2.7/dist-packages/gobject/__init__.py:115: Warning: attempting to add an interface (GtkEditable) to class (HistoryFileEntry) after class_init
  type_register(cls, namespace.get('__gtype_name__'))

Because of recent glib changes:
http://blogs.gnome.org/desrt/2012/11/05/a-warning-about-glib/

Example bugs:
meld - bug 1103170
dia - bug 1102960

Changed in pygtk (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
tags: added: rls-r-incoming
Changed in pygtk:
importance: Unknown → Medium
status: Unknown → New
Martin Pitt (pitti)
Changed in pygtk (Ubuntu):
importance: Undecided → High
status: New → Triaged
Martin Pitt (pitti)
affects: pygtk (Ubuntu) → pygobject-2 (Ubuntu)
Changed in pygobject-2 (Ubuntu):
status: Triaged → Fix Committed
affects: pygtk → pygobject
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed package uploaded to Debian. I'll sync it tomorrow morning, when it made its way into Debian and imported in Launchpad.

Changed in pygobject:
importance: Medium → High
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygobject-2 - 2.28.6-11

---------------
pygobject-2 (2.28.6-11) unstable; urgency=low

  * debian/control.in: Drop the "Provides: python2.6-gobject". There are no
    reverse dependencies anyway, and we don't encourage any new ones.
  * Add 00git_class_init.patch: Move property and signal creation into
    _class_init(). This allows old PyGTK applications to work with static
    PyGObject and GLib 2.35.x. (LP: #1129309)

 -- Martin Pitt <email address hidden> Tue, 19 Feb 2013 16:19:52 +0100

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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