Reviewers: ,
Please review this at http://codereview.tryton.org/501008/ Affected files: M tryton/common/common.py Index: tryton/common/common.py =================================================================== --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -292,7 +292,7 @@ def get_toplevel_window(): windows = [x for x in gtk.window_list_toplevels() if x.window and x.props.visible - and x.get_window_type() == gtk.WINDOW_TOPLEVEL] + and x.props.type == gtk.WINDOW_TOPLEVEL] trans2windows = dict((x.get_transient_for(), x) for x in windows) for window in set(windows) - set(trans2windows.iterkeys()): return window -- tryton-dev@googlegroups.com mailing list