aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:24:07 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:31:42 +0100
commit7ab12b88799eea07b8460c37329b3d46b5fcf826 (patch)
tree813f701bb98a8b397fb9f696a29578fd5695211f
parent361a5bd4179e79f7a98691ad6a74b4ad55e1ac52 (diff)
downloadnet_monitor-7ab12b88799eea07b8460c37329b3d46b5fcf826.tar
net_monitor-7ab12b88799eea07b8460c37329b3d46b5fcf826.tar.gz
net_monitor-7ab12b88799eea07b8460c37329b3d46b5fcf826.tar.bz2
net_monitor-7ab12b88799eea07b8460c37329b3d46b5fcf826.tar.xz
net_monitor-7ab12b88799eea07b8460c37329b3d46b5fcf826.zip
draw event now gets a Cairo context
-rwxr-xr-xsrc/net_monitor4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_monitor b/src/net_monitor
index e88a27c..14cce77 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -241,10 +241,10 @@ class LoadGraph:
self.__convert_points()
- def on_expose(self, widget, event):
+ def on_expose(self, widget, cr):
""" A signal handler that is called every time we need to redraw
the widget """
- self.__context = widget.window.cairo_create()
+ self.__context = cr
self.__get_max()
self.__text_size()