summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-30 16:38:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-30 16:38:20 +0000
commit2e597353e8afa405ac96dfd83345853af18ed2f4 (patch)
treefc710e4daa1e9d6e421ef2ca3091d6dbba6c641e
parent33825e698d75f7979e4129c10db69308557fa498 (diff)
downloaddrakx-2e597353e8afa405ac96dfd83345853af18ed2f4.tar
drakx-2e597353e8afa405ac96dfd83345853af18ed2f4.tar.gz
drakx-2e597353e8afa405ac96dfd83345853af18ed2f4.tar.bz2
drakx-2e597353e8afa405ac96dfd83345853af18ed2f4.tar.xz
drakx-2e597353e8afa405ac96dfd83345853af18ed2f4.zip
fix&cleanup window size
-rw-r--r--perl-install/interactive_gtk.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index 12fd43c4b..cc0eb6c99 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -14,6 +14,7 @@ my $forgetTime = 1000; #- in milli-seconds
sub new {
($::windowheight, $::windowwidth) = my_gtk::gtkroot()->get_size if !$::isInstall;
+ ($::wantedheight, $::wantedwidth) = ($::windowheight * 0.8, $::windowwidth * 0.8);
goto &interactive::new;
}
sub enter_console { my ($o) = @_; $o->{suspended} = common::setVirtual(1) }
@@ -494,10 +495,10 @@ sub ask_fromW {
my $w = create_packtable({}, map { [($_->{icon_w}, $_->{e}{label}, $_->{real_w})]} @_);
my $width = max(250, $max_width * 5);
- $mainw->{box_width} = min($::windowheight * 0.7, $width);
+ $mainw->{box_width} = min($::wantedwidth, $width);
my $height = max(200, my_gtk::n_line_size($always_total_size, 'various', $mainw->{rwindow}));
- $mainw->{box_height} = min($::windowheight * 0.7, $height);
+ $mainw->{box_height} = min($::wantedheight, $height);
my $has = $width > $mainw->{box_width} || $height > $mainw->{box_height};
$has_scroll ||= $has;