summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-11 11:45:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-11 11:45:24 +0000
commitee6ad956214f83f189b5e32687efa0859cd61efe (patch)
tree2d51b17ca662ca7bd7a2c7bf1d637e5e69e5c5fc /perl-install
parent585ad36263ff6e0348b45b9b3c3256533203cde8 (diff)
downloaddrakx-ee6ad956214f83f189b5e32687efa0859cd61efe.tar
drakx-ee6ad956214f83f189b5e32687efa0859cd61efe.tar.gz
drakx-ee6ad956214f83f189b5e32687efa0859cd61efe.tar.bz2
drakx-ee6ad956214f83f189b5e32687efa0859cd61efe.tar.xz
drakx-ee6ad956214f83f189b5e32687efa0859cd61efe.zip
change set_main_window_size() prototype
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/interactive/gtk.pm2
-rw-r--r--perl-install/ugtk2.pm6
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 {