diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-03-05 11:56:37 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-03-05 11:56:37 (GMT) |
commit | b6324118b1c210b98ef4bc55bdac3d4b2d6e10e0 (patch) | |
tree | 4c2af4581793a5e52d4875d71d00da2b136b4c04 /readdialog.py | |
parent | 89415a84182c17d506b0d5ac4e807a3252d61db8 (diff) |
Substitue use of window.xid by get_window() to set the parent to a dialog
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readdialog.py')
-rw-r--r-- | readdialog.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readdialog.py b/readdialog.py index 4460fe4..852cfe7 100644 --- a/readdialog.py +++ b/readdialog.py @@ -74,11 +74,11 @@ class BaseReadDialog(Gtk.Window): self._canvas = canvas def __realize_cb(self, widget): - self.window.set_type_hint(Gdk.WindowType._HINT_DIALOG) - self.window.set_accept_focus(True) + self.get_window().set_type_hint(Gdk.WindowType._HINT_DIALOG) + self.get_window().set_accept_focus(True) parent = Gdk.window_foreign_new(self._parent_window_xid) - self.window.set_transient_for(parent) + self.get_window().set_transient_for(parent) self.modify_bg(Gtk.StateType.NORMAL, style.COLOR_WHITE.get_gdk_color()) |