[Sugar-devel] [PATCH shell 1/2] Fix realize callback in ViewSource

Manuel Quiñones manuq at laptop.org
Fri Sep 21 01:38:07 EDT 2012


Gtk.Widget does not have window property anymore, use get_window()

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 src/jarabe/view/viewsource.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jarabe/view/viewsource.py b/src/jarabe/view/viewsource.py
index d8b5e02..5ee2b75 100644
--- a/src/jarabe/view/viewsource.py
+++ b/src/jarabe/view/viewsource.py
@@ -200,7 +200,7 @@ class ViewSource(Gtk.Window):
 
     def __realize_cb(self, widget):
         self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
-        self.window.set_accept_focus(True)
+        self.get_window().set_accept_focus(True)
 
         display = Gdk.Display.get_default()
         parent = GdkX11.X11Window.foreign_new_for_display( \
-- 
1.7.11.4



More information about the Sugar-devel mailing list