aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()