diff options
-rw-r--r-- | perl-install/interactive/gtk.pm | 2 | ||||
-rw-r--r-- | perl-install/ugtk2.pm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index a7d621776..7526c8a8b 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -596,7 +596,7 @@ sub ask_fromW { $mainw->{box_allow_grow} = 1; my $pack = create_box_with_title($mainw, @{$common->{messages}}); - ugtk2::set_main_window_size($mainw) if $mainw->{pop_it} && (@$l || $mainw->{box_size} == 200); + ugtk2::set_main_window_size($mainw->{window}) if $mainw->{pop_it} && (@$l || $mainw->{box_size} == 200); my @before_widgets_advanced = ( (map { { grow => 0, real_w => Gtk2::WrappedLabel->new($_) } } @{$common->{advanced_messages}}), diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index e1787f02a..c968691b4 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -877,15 +877,15 @@ sub new { } } $o->{rwindow} = $o->{window} = gtknew('VBox', border_width => 10); - set_main_window_size($o); + set_main_window_size($o->{window}); gtkpack($::WizardTable, $o->{window}); } $o; } sub set_main_window_size { - my ($o) = @_; + my ($window) = @_; my ($width, $height) = $::isInstall ? ($::real_windowwidth, $::real_windowheight) : $::isWizard ? (540, 360) : (600, 400); - $o->{window}->set_size_request($width, $height); + $window->set_size_request($width, $height); } sub main { |