Public bug reported:

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://pastebin.ubuntu.com/7801425/

 - 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_default_root_window()' before the import of GdkX11 meaning the call of 
'GdkX11.X11Window.foreign_new_for_display(...)' will fail with the message:
  AttributeError: type object 'gtk.gdk.X11Window' has no attribute 
'foreign_new_for_display'

** Affects: gtk+3.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1343069

Title:
  Order of imports and method calls alters API

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1343069/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to