summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-19 22:31:57 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-19 22:31:57 +0000
commitcac63e3f3c271eb24d31d0c943378899f275733f (patch)
treef490f0e699171fd3b70382ba4faedaa537f6d738 /lib
parentd0935907247717f1c72ecd6e34adb2f3dc36be12 (diff)
downloaddrakx-net-cac63e3f3c271eb24d31d0c943378899f275733f.tar
drakx-net-cac63e3f3c271eb24d31d0c943378899f275733f.tar.gz
drakx-net-cac63e3f3c271eb24d31d0c943378899f275733f.tar.bz2
drakx-net-cac63e3f3c271eb24d31d0c943378899f275733f.tar.xz
drakx-net-cac63e3f3c271eb24d31d0c943378899f275733f.zip
group cmanagers in a list
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index bb1c8e1..9b0f884 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -49,6 +49,7 @@ sub main {
@connections = uniq_ { $_->{device} } @connections;
my $pixbufs = network::connection_manager::create_pixbufs();
+ my @cmanagers = map { build_cmanager($in, $net, $w, $pixbufs, $_) } @connections;
gtkadd($w->{window},
gtknew('VBox', spacing => 5, children => [
@@ -56,7 +57,7 @@ sub main {
1, gtknew('ScrolledWindow', width => 500, height => 300, shadow_type => 'none',
child => gtknew('VBox', spacing => 5, children_tight => [
map_index {
- my $cmanager = build_cmanager($in, $net, $w, $pixbufs, $_);
+ my $cmanager = $cmanagers[$::i];
my $icon = $_->get_status_icon;
ugtk2::_find_imgfile($icon) or $icon = $_->get_type_icon;
my $head = gtknew('HBox', children => [