From 2fcc1682f289130669f870957e48d27172657ec0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 5 Mar 2003 11:26:50 +0000 Subject: ensure buttons are visible when the widgets above are too big --- perl-install/interactive/gtk.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'perl-install/interactive/gtk.pm') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index e5e6e5183..0f427381e 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -657,7 +657,14 @@ sub ask_fromW { $pack->pack_start($always_pack, 1, 1, 0); $always_pack->show; $pack->pack_start($advanced_pack, 1, 1, 0); - $pack->pack_start($buttons_pack, 0, 0, 0) if $buttons_pack; $buttons_pack->show if $buttons_pack; + if ($buttons_pack) { + if ($::isWizard && !$mainw->{pop_it}) { + $buttons_pack->set_size_request($::windowwidth * 0.9 - 20, -1); + $buttons_pack = gtkpack__(Gtk2::HBox->new(0,0), $buttons_pack); + } + $pack->pack_start($buttons_pack, 0, 0, 0); + $buttons_pack->show; + } gtkadd($mainw->{window}, $pack); $set_default_size->() if $has_scroll_always; $set_advanced->($common->{advanced_state}); -- cgit v1.2.1