From 8367eb08fdb2c6b6529d6a7af24ec381eeeba7be Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 26 Jan 2004 15:56:27 +0000 Subject: - pack add_modify_remove widget growable - no need to size it --- perl-install/interactive/gtk.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 5825ddd22..9476d78de 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -482,7 +482,6 @@ sub ask_fromW { foreach my $button (@buttons) { $button->{button}->signal_connect(clicked => sub { $do_action->($button) }); } - $w->set_size_request(400, -1); $real_w = gtkpack_(Gtk2::HBox->new(0,0), 1, create_scrolled_window($w), 0, gtkpack__(Gtk2::VBox->new(0,0), map { $_->{button} } @buttons)); @@ -599,7 +598,7 @@ sub ask_fromW { my (@widgets) = @_; gtkpack_(Gtk2::VBox->new, map { - ($_->{real_w}->isa("Gtk2::ScrolledWindow") ? 1 : 0), + ($_->{real_w}->isa("Gtk2::ScrolledWindow") || $_->{real_w}->get_data('must_grow') ? 1 : 0), $_->{real_w}->isa("Gtk2::CheckButton") && !$_->{icon_w} && !$_->{e}{label} ? $_->{real_w} : gtkpack_(Gtk2::HBox->new, 0, $_->{icon_w}, -- cgit v1.2.1