Order of imports and method calls alters API
Bug #1343069 reported by
Christopher Lee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
New
|
Low
|
Unassigned |
Bug Description
Using the python gi.repository (gir1.2-gtk-3.0) if I import Gdk make a specific method call and then import GdkX11 the API for GdkX11 is different than if I had imported both before the method call.
To reproduce:
Run the script found here (details in comments): http://
- Running the script without any arguments passed (i.e. the API is as expected)
- Running it with any arguments will make the script call 'Gdk.get_
AttributeError: type object 'gtk.gdk.X11Window' has no attribute 'foreign_
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https:/ /wiki.ubuntu. com/Bugs/ Upstream/ GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.