summaryrefslogtreecommitdiffstats
path: root/lib/network/drakroam.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/drakroam.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/drakroam.pm')
-rwxr-xr-xlib/network/drakroam.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index 7bf8033..8d53108 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -99,12 +99,14 @@ sub create_drakroam_gui {
dbus_object::set_gtk2_watch_helper($dbus);
}
+ (undef, my $rootwin_height) = gtkroot()->get_size();
+ my $scrolled_height = $rootwin_height > 480 ? 300 : 225;
gtkadd($droam->{gui}{w}{window},
gtknew('VBox', spacing => 5, children => [
$::isEmbedded ? () : (0, Gtk2::Banner->new($icon, $title)),
0, gtknew('HBox', children_tight => [ gtknew('Label_Left', text => N("Device: "), alignment => [ 0.5, 0.5 ]),
gtksignal_connect($droam->{gui}{connections_combo}, changed => sub { select_connection($droam) }) ]),
- 1, gtknew('ScrolledWindow', width => 500, height => 300, child => $droam->{gui}{networks_list}),
+ 1, gtknew('ScrolledWindow', width => 500, height => $scrolled_height, child => $droam->{gui}{networks_list}),
0, gtknew('HButtonBox', layout => 'edge', children_loose => [
$droam->{gui}{buttons}{configure} = gtknew('Button', text => N("Configure"), clicked => sub { network::connection_manager::configure_connection($droam) }),
$droam->{gui}{buttons}{connect_start} = gtknew('Button', text => N("Connect"), relief => 'half', clicked => sub { network::connection_manager::start_connection($droam) }),