From 4167145c9ad86262e2024fd23f04f7de06f09025 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 17 Nov 2008 11:31:46 +0000 Subject: keep track of main managers box (to add more managers on hotplugging) --- lib/network/netcenter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/network') diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 285d3e0..872f046 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -147,11 +147,12 @@ sub main { (undef, my $rootwin_height) = gtkroot()->get_size; my $scrolled_height = $rootwin_height > 480 ? 400 : 295; + my $managers_box; gtkadd($w->{window}, gtknew('VBox', spacing => 5, children => [ $::isEmbedded ? () : (0, Gtk2::Banner->new($icon, $title)), 1, gtknew('ScrolledWindow', width => 600, height => $scrolled_height, shadow_type => 'none', - child => gtknew('VBox', spacing => 5, children_tight => [ + child => $managers_box = gtknew('VBox', spacing => 5, children_tight => [ map_index { build_cmanager_box($cmanagers[$::i], $::i == 0) } @connections, ])), 0, gtknew('HButtonBox', spacing => 6, layout => 'end', children_loose => [ -- cgit v1.2.1