summaryrefslogtreecommitdiffstats
path: root/bin/net_monitor
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 01:41:34 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 11:00:42 +0100
commitd81e88a8ecd9d312cb689092f2aadb5ed1a0a75b (patch)
tree6416a82f4b42d9429119e35a3664b01a15fe653d /bin/net_monitor
parentfdf3f3b2a3a9360a42b62a39435b73da1244c03f (diff)
downloaddrakx-net-d81e88a8ecd9d312cb689092f2aadb5ed1a0a75b.tar
drakx-net-d81e88a8ecd9d312cb689092f2aadb5ed1a0a75b.tar.gz
drakx-net-d81e88a8ecd9d312cb689092f2aadb5ed1a0a75b.tar.bz2
drakx-net-d81e88a8ecd9d312cb689092f2aadb5ed1a0a75b.tar.xz
drakx-net-d81e88a8ecd9d312cb689092f2aadb5ed1a0a75b.zip
perlish ->window => ->get_window
Diffstat (limited to 'bin/net_monitor')
-rwxr-xr-xbin/net_monitor16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/net_monitor b/bin/net_monitor
index d3704b8..4bbb58b 100755
--- a/bin/net_monitor
+++ b/bin/net_monitor
@@ -128,11 +128,11 @@ gtkadd($window1->{window},
$window1->{window}->show_all;
$window1->{window}->realize;
-my $gct = Gtk3::Gdk::GC->new($window1->{window}->window);
+my $gct = Gtk3::Gdk::GC->new($window1->{window}->get_window);
$gct->set_foreground($colort);
-my $gcr = Gtk3::Gdk::GC->new($window1->{window}->window);
+my $gcr = Gtk3::Gdk::GC->new($window1->{window}->get_window);
$gcr->set_foreground($colorr);
-my $gca = Gtk3::Gdk::GC->new($window1->{window}->window);
+my $gca = Gtk3::Gdk::GC->new($window1->{window}->get_window);
$gca->set_foreground($colora);
$statusbar->push(1, N("Wait please, testing your connection..."));
@@ -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]->window->draw_rectangle($gc, 1, 0, 0, 10, 10) })
+ expose_event => sub { $_[0]->get_window->draw_rectangle($gc, 1, 0, 0, 10, 10) })
);
}
@@ -469,7 +469,7 @@ sub update() {
gtknew('Label', text => $intf));
$monitor->{$intf}{page} = $notebook->page_num($page);
$darea->{$intf}->realize;
- $pixmap->{$intf} = Gtk3::Gdk::Pixmap->new($darea->{$intf}->window, $width, $height, $darea->{$intf}->window->get_depth);
+ $pixmap->{$intf} = Gtk3::Gdk::Pixmap->new($darea->{$intf}->get_window, $width, $height, $darea->{$intf}->window->get_depth);
$monitor->{$intf}{referencer} = $monitor->{$intf}{val}[0];
$monitor->{$intf}{referencet} = $monitor->{$intf}{val}[8];
$pixmap->{$intf}->draw_rectangle($darea->{$intf}->style->black_gc, 1, 0, 0, $width, $height);
@@ -482,10 +482,10 @@ 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);
+ 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);
});
- $gc_lines->{$intf} = Gtk3::Gdk::GC->new($darea->{$intf}->window);
+ $gc_lines->{$intf} = Gtk3::Gdk::GC->new($darea->{$intf}->get_window);
$gc_lines->{$intf}->set_foreground($darea->{$intf}->style->white);
$gc_lines->{$intf}->set_line_attributes(1, 'on-off-dash', 'not-last', 'round');