summaryrefslogtreecommitdiffstats
path: root/lib/network/netcenter.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-28 21:44:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-28 21:44:34 +0000
commit2d7f74ab8973592eaa6253556460fbdf7828c36c (patch)
tree5b0286187b73dbcab30f5d25729964ffa1a146df /lib/network/netcenter.pm
parent63b58c6257cd7577484c272e524232ac2f655406 (diff)
downloaddrakx-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-xlib/network/netcenter.pm4
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];