summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-17 11:25:06 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-17 11:25:06 +0000
commit2606ce1943b1c0a95dec35e621f18cd57e811db9 (patch)
treea22b042641d4ac10e576067cbecbb716311059b9 /lib
parent6aa8f2aadabdbba99811cfac6d86fc0757bd3892 (diff)
downloaddrakx-net-2606ce1943b1c0a95dec35e621f18cd57e811db9.tar
drakx-net-2606ce1943b1c0a95dec35e621f18cd57e811db9.tar.gz
drakx-net-2606ce1943b1c0a95dec35e621f18cd57e811db9.tar.bz2
drakx-net-2606ce1943b1c0a95dec35e621f18cd57e811db9.tar.xz
drakx-net-2606ce1943b1c0a95dec35e621f18cd57e811db9.zip
use connection field instead of default input variable
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 1094683..5ebaeb5 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -68,11 +68,11 @@ sub main {
0, gtknew('Label', padding => [ 5, 0 ]),
1, gtknew('VBox', children_tight => [
gtknew('HBox', children => [
- 1, gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_type_name . '</b>'),
+ 1, gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $cmanager->{connection}->get_type_name . '</b>'),
0, gtknew('Label', padding => [ 2, 0 ]),
- 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => $_->get_interface ? '<b>' . $_->get_interface . '</b>' : ""),
+ 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => $cmanager->{connection}->get_interface ? '<b>' . $cmanager->{connection}->get_interface . '</b>' : ""),
]),
- gtknew('Label', ellipsize => 'end', alignment => [ 0, 0 ], text_markup => $_->get_description),
+ gtknew('Label', ellipsize => 'end', alignment => [ 0, 0 ], text_markup => $cmanager->{connection}->get_description),
]),
]);
my $content = gtknew('HBox', children => [