summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Back <fredericback@gmail.com>2006-09-24 11:42:03 +0000
committerFrederic Back <fredericback@gmail.com>2006-09-24 11:42:03 +0000
commite509bda210de68beaa518be6be4efdbe1759a03b (patch)
tree0a79ad765774a53d0342434363bae0f763571e55
parent99a8ed23df40db8dd6fe519bc51e3db928982020 (diff)
* do not show black backrgound when app starts up
git-svn-id: file:///home/lennart/svn/public/fring/trunk@20 d0d2c35f-0a1e-0410-abeb-dabff30a67ee
-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