From e83bc8375896def1a8bfecb6320dc7e33d955b4f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 28 Sep 2007 18:30:50 +0000 Subject: allow interactive::gtk frontends to ask for a directory --- perl-install/NEWS | 2 ++ perl-install/interactive/gtk.pm | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install') 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); -- cgit v1.2.1