summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--src/fringlib/fringui.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/TODO b/TODO
index 440b2f5..cf3582f 100644
--- a/TODO
+++ b/TODO
@@ -15,4 +15,4 @@ TODO
[ ] make sure that filenames are always visible
[ ] do more magic adjustments
[ ] clean gui -> renderer interface
-[ ] do not show black backrgound when app starts up
+[x] do not show black backrgound when app starts up
diff --git a/src/fringlib/fringui.py b/src/fringlib/fringui.py
index 1fe187d..5e13794 100644
--- a/src/fringlib/fringui.py
+++ b/src/fringlib/fringui.py
@@ -285,6 +285,9 @@ class UI( gtk.Window ):
self.image.set_from_pixmap(self.pixmap,None)
self.ctx = self.pixmap.cairo_create()
self.renderer.prepare_layouts(self.ctx)
+ self.ctx.rectangle(0,0,self.width,self.height)
+ self.ctx.set_source_rgb(*self.backgroundColour)
+ self.ctx.fill()
def __list_changed(self,widget,data):
self.data = data