Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorEduardo Silva <edsiper@monotop.(none)>2007-07-23 17:17:33 (GMT)
committer Eduardo Silva <edsiper@monotop.(none)>2007-07-23 17:17:33 (GMT)
commit7003466f0d9b74b0082c8b5d74b111115263567a (patch)
treebafd00092e634c804c3b5f0114646a82cfa7e36e /services
parentfb2abf05177ff19b12fedc89a8593331b12ece74 (diff)
Console: fix drawing area width var
Diffstat (limited to 'services')
-rw-r--r--services/console/lib/graphics/frequency.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/console/lib/graphics/frequency.py b/services/console/lib/graphics/frequency.py
index b40bf7f..94c55cf 100644
--- a/services/console/lib/graphics/frequency.py
+++ b/services/console/lib/graphics/frequency.py
@@ -26,9 +26,11 @@ class HorizontalGraphic(gtk.DrawingArea):
def __init__(self):
gtk.DrawingArea.__init__(self)
+ self._width = 0
+ self._height = 0
+ self._buffer = [0]
self.connect('expose-event', self.do_expose)
self.connect('size-allocate', self._change_size_cb)
- self._buffer = [0]
def do_expose(self, widget, event):
context = widget.window.cairo_create()