From 1d0dd48cd036b1929979de961a39385ab083e2e2 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Tue, 07 Feb 2012 15:36:07 +0000 Subject: White BackGround --- (limited to 'activity.py') 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) -- cgit v0.9.1