X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=helldon%2F__init__.py;h=c333823e375ea29c550f4e859ede6f55a919a528;hp=cf817d7fff2a387912a1617919102f9ebe6ef1f7;hb=bfda1c4c14e85f118b8396f3c82cec119a689d09;hpb=492c66ab47d14690ad5b20ec9cef50d17d00a326 diff --git a/helldon/__init__.py b/helldon/__init__.py index cf817d7..c333823 100644 --- a/helldon/__init__.py +++ b/helldon/__init__.py @@ -15,6 +15,7 @@ class Program(gtk.Window): def __init__(self): gtk.Window.__init__(self, type=gtk.WINDOW_TOPLEVEL) + self.set_app_paintable(True) self._vbox = gtk.VBox() self._title = gtk.Label("Jamaendo") self._backbtn = gtk.Button("<<<") @@ -31,6 +32,14 @@ class Program(gtk.Window): Program.instance = self self._backbtn.connect('clicked', self.on_back) + bgimg = 'data/bg.png' + if bgimg: + background, mask = gtk.gdk.pixbuf_new_from_file(bgimg).render_pixmap_and_mask() + self.set_app_paintable(True) + self.realize() + self.window.set_back_pixmap(background, False) + self.window.clear() + self._stack = [] def add_window(self, wnd):