summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-26 15:56:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-26 15:56:27 +0000
commit8367eb08fdb2c6b6529d6a7af24ec381eeeba7be (patch)
tree6c53c6b5e50205868f6ae3e6ed94d20bc7a26fa5
parent2ca048aa17c1909db1c7a76cf774430919f725bf (diff)
downloaddrakx-8367eb08fdb2c6b6529d6a7af24ec381eeeba7be.tar
drakx-8367eb08fdb2c6b6529d6a7af24ec381eeeba7be.tar.gz
drakx-8367eb08fdb2c6b6529d6a7af24ec381eeeba7be.tar.bz2
drakx-8367eb08fdb2c6b6529d6a7af24ec381eeeba7be.tar.xz
drakx-8367eb08fdb2c6b6529d6a7af24ec381eeeba7be.zip
- pack add_modify_remove widget growable
- no need to size it
-rw-r--r--perl-install/interactive/gtk.pm3
1 files changed, 1 insertions, 2 deletions
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},