aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-09 12:53:59 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-09 12:53:59 +0000
commit9f4f0246dcb22fff78c93b85d7e72d41f31c2143 (patch)
tree77eb37564c7006998ce409c20589ee78371f472e /MandrivaUpdate
parentd1171f8feff61551d5a5ad6841b19dc615796349 (diff)
downloadrpmdrake-9f4f0246dcb22fff78c93b85d7e72d41f31c2143.tar
rpmdrake-9f4f0246dcb22fff78c93b85d7e72d41f31c2143.tar.gz
rpmdrake-9f4f0246dcb22fff78c93b85d7e72d41f31c2143.tar.bz2
rpmdrake-9f4f0246dcb22fff78c93b85d7e72d41f31c2143.tar.xz
rpmdrake-9f4f0246dcb22fff78c93b85d7e72d41f31c2143.zip
(run_treeview_dialog) do not display banner in laptop mode (aka if
height is not bigger than 480)
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate4
1 files changed, 3 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 490a0c03..d067e446 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -116,13 +116,15 @@ sub run_treeview_dialog {
my ($size_selected, %elems, $list, $info, $update_button);
my (undef, $size_free) = MDK::Common::System::df('/usr');
+ my (undef, $rootwin_height) = gtkroot()->get_size();
+
compute_main_window_size($w);
gtkadd(
$w->{window},
gtkpack_(
gtknew('VBox', spacing => 3),
- 0, getbanner(),
+ if_($rootwin_height <480, 0, getbanner()),
0, gtknew('Title2', label => N("Here is the list of software package updates")),
1, create_vpaned(
gtknew('ScrolledWindow', width => $typical_width*0.9, height => 200,