Object Chooser: update for GDK3 get_xid()

In GDK3 the 'xid' attribute is gone and is replaced with
gdk_x11_window_get_xid(), or the get_xid() method in Python.

Needed to be able to open the object chooser from Browse without hassle.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
master
Daniel Drake 12 years ago committed by Simon Schampijer
parent ed7d1e8490
commit fd7b599710

@ -40,8 +40,8 @@ class ObjectChooser(object):
if parent is None:
parent_xid = 0
elif hasattr(parent, 'get_window') and hasattr(parent.get_window(),
'xid'):
parent_xid = parent.get_window().xid
'get_xid'):
parent_xid = parent.get_window().get_xid()
else:
parent_xid = parent

Loading…
Cancel
Save