diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-22 18:02:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-22 18:02:53 +0000 |
commit | d10c27caee07720ee0145a0a20da07919448e898 (patch) | |
tree | 424fb5ae968364957961e3f0ad3af7dac655ec5f /bin/net_monitor | |
parent | 51ba86c170afb8f17897fe1cbcd108f07b432e79 (diff) | |
download | drakx-net-d10c27caee07720ee0145a0a20da07919448e898.tar drakx-net-d10c27caee07720ee0145a0a20da07919448e898.tar.gz drakx-net-d10c27caee07720ee0145a0a20da07919448e898.tar.bz2 drakx-net-d10c27caee07720ee0145a0a20da07919448e898.tar.xz drakx-net-d10c27caee07720ee0145a0a20da07919448e898.zip |
make expose_event callback more robust (#36537)
Diffstat (limited to 'bin/net_monitor')
-rwxr-xr-x | bin/net_monitor | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/net_monitor b/bin/net_monitor index a93fea2..659df33 100755 --- a/bin/net_monitor +++ b/bin/net_monitor @@ -432,6 +432,7 @@ sub update() { gtkset($measure_t, text => formatXiB($transmitted)); }); $darea->{$intf}->signal_connect(expose_event => sub { + return if !$darea->{$intf}->window; $darea->{$intf}->window->draw_drawable($darea->{$intf}->style->bg_gc('normal'), $pixmap->{$intf}, 0, 0, 0, 0, $width, $height); }); $gc_lines->{$intf} = Gtk2::Gdk::GC->new($darea->{$intf}->window); |