If you write  "gtk.gdk.Window.get_origin()" then that is indeed pygtk,
not GI. But as pygtk has been deprecated long ago, and your actual
example uses GI (and gedit got ported to GI long ago as well), I take it
you are using GTK through introspection.

The function is behaving as documented:
https://developer.gnome.org/gdk/unstable/gdk-Windows.html#gdk-window-
get-origin

I. e. it is supposed to return a 3-tuple (return value, x, y). The
return value (i. e. the first part of the tuple) can be ignored as the
documentation mentions.


** Package changed: pygtk (Ubuntu) => gtk+3.0 (Ubuntu)

** Changed in: gtk+3.0 (Ubuntu)
       Status: New => Invalid

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

Title:
  gtk.gdk.Window.get_origin() returns 3 values instead of the documented
  2-tuple

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

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

Reply via email to