aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:15:36 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:31:42 +0100
commitd8ab73231ba7689c1e6491e5f4f6823ae26ed837 (patch)
tree52a9518a03a2e1d7d44545084d8e8aabb541e9d9 /src
parent3d5a49f4b1a8ca145d742cce21bd78c5d42175a0 (diff)
downloadnet_monitor-d8ab73231ba7689c1e6491e5f4f6823ae26ed837.tar
net_monitor-d8ab73231ba7689c1e6491e5f4f6823ae26ed837.tar.gz
net_monitor-d8ab73231ba7689c1e6491e5f4f6823ae26ed837.tar.bz2
net_monitor-d8ab73231ba7689c1e6491e5f4f6823ae26ed837.tar.xz
net_monitor-d8ab73231ba7689c1e6491e5f4f6823ae26ed837.zip
expose_event => draw
Diffstat (limited to 'src')
-rwxr-xr-xsrc/net_monitor4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_monitor b/src/net_monitor
index b05f7a7..c3409d4 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -627,7 +627,7 @@ class MonitorGui:
traf_vbox.pack_start(draw, True, True, 0)
histogram = {"in": [], "out": []}
graph = LoadGraph(draw, histogram, HISTOGRAM_SIZE)
- draw.connect('expose_event', graph.on_expose)
+ draw.connect('draw', graph.on_expose)
self.ifaces[iface]['graph'] = graph
self.ifaces[iface]['histogram'] = histogram
@@ -715,7 +715,7 @@ class MonitorGui:
draw = Gtk.DrawingArea()
histogram = {"in": [], "out": []}
graph = LoadGraph(draw, histogram, HISTOGRAM_SIZE, min_height=40, axes_text="%", draw_both=False, max=100, draw_legend=False)
- draw.connect('expose_event', graph.on_expose)
+ draw.connect('draw', graph.on_expose)
self.ifaces[iface]['link_graph'] = graph
self.ifaces[iface]['link_histogram'] = histogram