diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-28 21:44:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-28 21:44:34 +0000 |
commit | 2d7f74ab8973592eaa6253556460fbdf7828c36c (patch) | |
tree | 5b0286187b73dbcab30f5d25729964ffa1a146df /lib/network/netcenter.pm | |
parent | 63b58c6257cd7577484c272e524232ac2f655406 (diff) | |
download | drakx-net-2d7f74ab8973592eaa6253556460fbdf7828c36c.tar drakx-net-2d7f74ab8973592eaa6253556460fbdf7828c36c.tar.gz drakx-net-2d7f74ab8973592eaa6253556460fbdf7828c36c.tar.bz2 drakx-net-2d7f74ab8973592eaa6253556460fbdf7828c36c.tar.xz drakx-net-2d7f74ab8973592eaa6253556460fbdf7828c36c.zip |
drakroam/netcenter: be 800x480 friendly (#38049)
Diffstat (limited to 'lib/network/netcenter.pm')
-rwxr-xr-x | lib/network/netcenter.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 3e533f4..0a3f844 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -44,10 +44,12 @@ sub main { my $pixbufs = network::connection_manager::create_pixbufs(); my @cmanagers = map { build_cmanager($in, $net, $w, $pixbufs, $_) } @connections; + (undef, my $rootwin_height) = gtkroot()->get_size(); + my $scrolled_height = $rootwin_height > 480 ? 400 : 295; gtkadd($w->{window}, gtknew('VBox', spacing => 5, children => [ $::isEmbedded ? () : (0, Gtk2::Banner->new($icon, $title)), - 1, gtknew('ScrolledWindow', width => 600, height => 400, shadow_type => 'none', + 1, gtknew('ScrolledWindow', width => 600, height => $scrolled_height, shadow_type => 'none', child => gtknew('VBox', spacing => 5, children_tight => [ map_index { my $cmanager = $cmanagers[$::i]; |