diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-19 22:31:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-19 22:31:57 +0000 |
commit | cac63e3f3c271eb24d31d0c943378899f275733f (patch) | |
tree | f490f0e699171fd3b70382ba4faedaa537f6d738 /lib | |
parent | d0935907247717f1c72ecd6e34adb2f3dc36be12 (diff) | |
download | drakx-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-x | lib/network/netcenter.pm | 3 |
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 => [ |