Console: fix drawing area width var
This commit is contained in:
parent
fb2abf0517
commit
7003466f0d
@ -26,9 +26,11 @@ class HorizontalGraphic(gtk.DrawingArea):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
gtk.DrawingArea.__init__(self)
|
gtk.DrawingArea.__init__(self)
|
||||||
|
self._width = 0
|
||||||
|
self._height = 0
|
||||||
|
self._buffer = [0]
|
||||||
self.connect('expose-event', self.do_expose)
|
self.connect('expose-event', self.do_expose)
|
||||||
self.connect('size-allocate', self._change_size_cb)
|
self.connect('size-allocate', self._change_size_cb)
|
||||||
self._buffer = [0]
|
|
||||||
|
|
||||||
def do_expose(self, widget, event):
|
def do_expose(self, widget, event):
|
||||||
context = widget.window.cairo_create()
|
context = widget.window.cairo_create()
|
||||||
|
Loading…
Reference in New Issue
Block a user