Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguzubiaga97@gmail.com>2012-02-07 15:36:07 (GMT)
committer Agustin Zubiaga <aguzubiaga97@gmail.com>2012-02-07 15:36:07 (GMT)
commit1d0dd48cd036b1929979de961a39385ab083e2e2 (patch)
treee58d78759754257bea445a6180db650b130ba558 /activity.py
parente5fd914f1862da5dfaf957f211b29570f7c1579e (diff)
White BackGround
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index eccb82e..cfbdbb0 100644
--- a/activity.py
+++ b/activity.py
@@ -99,6 +99,13 @@ class ChartArea(gtk.DrawingArea):
def _expose_cb(self, widget, event):
context = self.window.cairo_create()
+
+ x, y, w, h = self.get_allocation()
+
+ # White Background:
+ context.rectangle(0, 0, w, h)
+ context.set_source_rgb(255, 255, 255)
+ context.fill()
# Paint the chart:
context.set_source_surface(self._parent.current_chart.surface)