aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-18 19:00:24 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-18 19:00:24 +0000
commit34517e48a0833bda2c90d10addab30c59c3b22ca (patch)
tree7a3f728475c82f8b6ca6d48fa78e5aab8b0b8276
parent6b9cb62e52f6f8165fb8f7f3bd19d594ba79fe42 (diff)
downloadrpmdrake-34517e48a0833bda2c90d10addab30c59c3b22ca.tar
rpmdrake-34517e48a0833bda2c90d10addab30c59c3b22ca.tar.gz
rpmdrake-34517e48a0833bda2c90d10addab30c59c3b22ca.tar.bz2
rpmdrake-34517e48a0833bda2c90d10addab30c59c3b22ca.tar.xz
rpmdrake-34517e48a0833bda2c90d10addab30c59c3b22ca.zip
(run_treeview_dialog) hide banner if screen height is small than 600 px (#38943)
-rw-r--r--NEWS2
-rwxr-xr-xrpmdrake2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ade3a873..09d00b81 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- hide banner if screen height is small than 600 px (#38943)
+
Version 4.8 - 17 March 2008, Thierry Vignaud
- tell the user to "restart system" when needed (needs urpmi-5.14)
diff --git a/rpmdrake b/rpmdrake
index 6be7c3c3..5e9796ee 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -588,7 +588,7 @@ sub run_treeview_dialog {
gtkpack_(
gtknew('VBox', spacing => 3),
0, $menu,
- 0, getbanner(),
+ if_((gtkroot()->get_size())[1] >= 600, 0, getbanner()),
1, gtkadd(
gtknew('Frame', border_width => 3, shadow_type => 'none'),
gtkpack_(