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

Simon Schampijer simon at schampijer.de
Fri Sep 21 09:15:06 EDT 2012


On 09/21/2012 07:38 AM, Manuel Quiñones wrote:
> Gtk.Widget does not have window property anymore, use get_window()
>
> Signed-off-by: Manuel Quiñones <manuq at laptop.org>

Yes, good to push. Please grep the source if we missed any more of those.

Thanks,
    Simon


> ---
>   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( \
>



More information about the Sugar-devel mailing list