summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 01:41:35 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 11:00:43 +0100
commitb0f952202b1daeccd029ac4e4ef91a9dae10cb41 (patch)
tree770b3a351cd836b8f2ade7078b85cb55e6daddf0
parent3bef8ad88261e34551963b4a09c4877b4baea8ee (diff)
downloaddrakx-net-b0f952202b1daeccd029ac4e4ef91a9dae10cb41.tar
drakx-net-b0f952202b1daeccd029ac4e4ef91a9dae10cb41.tar.gz
drakx-net-b0f952202b1daeccd029ac4e4ef91a9dae10cb41.tar.bz2
drakx-net-b0f952202b1daeccd029ac4e4ef91a9dae10cb41.tar.xz
drakx-net-b0f952202b1daeccd029ac4e4ef91a9dae10cb41.zip
draw replaces expose_event
-rwxr-xr-xbin/net_monitor4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_monitor b/bin/net_monitor
index 4bbb58b..8a68ef7 100755
--- a/bin/net_monitor
+++ b/bin/net_monitor
@@ -409,7 +409,7 @@ sub color_button {
$_[0]->queue_draw;
},
child => gtksignal_connect(gtkshow(gtksize(gtkset(Gtk3::DrawingArea->new, width => 10, height => 10), 10, 10)),
- expose_event => sub { $_[0]->get_window->draw_rectangle($gc, 1, 0, 0, 10, 10) })
+ draw => sub { $_[0]->get_window->draw_rectangle($gc, 1, 0, 0, 10, 10) })
);
}
@@ -481,7 +481,7 @@ sub update() {
gtkset($measure_r, text => formatXiB($received));
gtkset($measure_t, text => formatXiB($transmitted));
});
- $darea->{$intf}->signal_connect(expose_event => sub {
+ $darea->{$intf}->signal_connect(draw => sub {
return if !$darea->{$intf}->get_window;
$darea->{$intf}->get_window->draw_drawable($darea->{$intf}->style->bg_gc('normal'), $pixmap->{$intf}, 0, 0, 0, 0, $width, $height);
});