summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-28 18:30:50 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-28 18:30:50 +0000
commite83bc8375896def1a8bfecb6320dc7e33d955b4f (patch)
treeb64a08faeb266b929ec9e1fb3e7010365c79ee95 /perl-install/interactive
parentfb02e449f948543788554ac1ddca47b27ac2b4ce (diff)
downloaddrakx-e83bc8375896def1a8bfecb6320dc7e33d955b4f.tar
drakx-e83bc8375896def1a8bfecb6320dc7e33d955b4f.tar.gz
drakx-e83bc8375896def1a8bfecb6320dc7e33d955b4f.tar.bz2
drakx-e83bc8375896def1a8bfecb6320dc7e33d955b4f.tar.xz
drakx-e83bc8375896def1a8bfecb6320dc7e33d955b4f.zip
allow interactive::gtk frontends to ask for a directory
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm5
1 files changed, 4 insertions, 1 deletions
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);