aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-26 13:28:15 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-26 13:28:15 +0000
commitb56f4236db0d1403dda215e0a1ea962197dc6553 (patch)
tree97164fdb58aea0b6bee1b006650aaf70913fde56
parentb5f5a4b35c078b4f291ec38c017b3571f8806347 (diff)
downloadrpmdrake-b56f4236db0d1403dda215e0a1ea962197dc6553.tar
rpmdrake-b56f4236db0d1403dda215e0a1ea962197dc6553.tar.gz
rpmdrake-b56f4236db0d1403dda215e0a1ea962197dc6553.tar.bz2
rpmdrake-b56f4236db0d1403dda215e0a1ea962197dc6553.tar.xz
rpmdrake-b56f4236db0d1403dda215e0a1ea962197dc6553.zip
if typical_width is too small, have a sensible small value
-rwxr-xr-xrpmdrake1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 98351a1a..e35c2759 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -423,6 +423,7 @@ or you already installed all of them."));
$tree->set_column_auto_resize($_, 1) foreach 0..2;
my $typical_width = $tree->get_style->font->string_width("Develop xmms-more-vis-plugins-1.6.0.0-2mdk");
$typical_width > 500 and $typical_width = 500; #- try to not being crazy with a too large value
+ $typical_width < 150 and $typical_width = 150;
$tree->set_column_max_width(0, $typical_width);
$tree->signal_connect(tree_expand => sub {
#- hackish: if first child has '' as name, then we need to expand on the fly