summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-05 13:29:48 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-05 13:29:48 +0000
commit49e8814ae71e82d64b511fe71ffcb185219e7cf6 (patch)
tree1a70687588c9423ff854dd9df0450493f5488b00 /lib
parent188bb587999bf88f9be6b5e8340217451323426e (diff)
downloaddrakx-net-49e8814ae71e82d64b511fe71ffcb185219e7cf6.tar
drakx-net-49e8814ae71e82d64b511fe71ffcb185219e7cf6.tar.gz
drakx-net-49e8814ae71e82d64b511fe71ffcb185219e7cf6.tar.bz2
drakx-net-49e8814ae71e82d64b511fe71ffcb185219e7cf6.tar.xz
drakx-net-49e8814ae71e82d64b511fe71ffcb185219e7cf6.zip
do not create networks frame if there is no networks list
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 6697ab9..6d4da66 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -58,9 +58,10 @@ sub main {
my $content = gtknew('HBox', children => [
0, gtknew('Label', padding => [ 5, 0 ]),
1, gtknew('VBox', spacing => 5, children_tight => [
- if_($cmanager->{gui}{show_networks},
+ ($cmanager->{gui}{show_networks} ? (
gtknew('Label', text => N("Please select your network:"), alignment => [ 0, 0 ]),
- gtknew('Frame', shadow_type => 'in', child => $cmanager->{gui}{networks_list})),
+ gtknew('Frame', shadow_type => 'in', child => $cmanager->{gui}{networks_list})
+ ) : ()),
gtknew('HBox', children => [
1, gtknew('HButtonBox', spacing => 6, layout => 'start', children_loose => [
$cmanager->{gui}{buttons}{monitor} =