diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/interactive/gtk.pm | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index b2fbd61d6..d9e9ce5f8 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,5 @@ + - allow interactive::gtk frontends to ask for a directory + Version 10.4.221 - 28 September 2007, by Olivier "blino" Blin - add back ipw3945 module in wireless modules list diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 5b078b0af..473e3a22a 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -529,7 +529,10 @@ sub create_widget { $set = sub { $w->set_text($_[0]) if $_[0] ne $w->get_text }; if ($e->{type} eq 'file') { my $button = gtksignal_connect(Gtk2::Button->new_from_stock('gtk-open'), clicked => sub { - my $file = $o->ask_filename({ title => $e->{label} }); + my $file = $o->ask_fileW({ + title => $e->{label}, + want_a_dir => to_bool($e->{want_a_dir}), + }); $set->($file) if $file; }); $real_w = gtkpack_(Gtk2::HBox->new(0,0), 1, $w, 0, $button); |