aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-09 12:55:07 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-09 12:55:07 +0000
commitccc6b46587c6b98fde86d880a75dfdddf1b8f0d1 (patch)
treef14a4ff2ceb5a5160782a474ed0b8b9a72e6ad0b /MandrivaUpdate
parent9f4f0246dcb22fff78c93b85d7e72d41f31c2143 (diff)
downloadrpmdrake-ccc6b46587c6b98fde86d880a75dfdddf1b8f0d1.tar
rpmdrake-ccc6b46587c6b98fde86d880a75dfdddf1b8f0d1.tar.gz
rpmdrake-ccc6b46587c6b98fde86d880a75dfdddf1b8f0d1.tar.bz2
rpmdrake-ccc6b46587c6b98fde86d880a75dfdddf1b8f0d1.tar.xz
rpmdrake-ccc6b46587c6b98fde86d880a75dfdddf1b8f0d1.zip
(run_treeview_dialog) factorize test (needed for next commit)
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index d067e446..9888031c 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -117,6 +117,7 @@ sub run_treeview_dialog {
my (undef, $size_free) = MDK::Common::System::df('/usr');
my (undef, $rootwin_height) = gtkroot()->get_size();
+ my $is_small_screen = $rootwin_height < 480;
compute_main_window_size($w);
@@ -124,7 +125,7 @@ sub run_treeview_dialog {
$w->{window},
gtkpack_(
gtknew('VBox', spacing => 3),
- if_($rootwin_height <480, 0, getbanner()),
+ if_($is_small_screen, 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,