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
Touch seeded packages, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1343069

Title:
  Order of imports and method calls alters API

Status in “gtk+3.0” package in Ubuntu:
  New

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://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'

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to