summaryrefslogtreecommitdiffstats
path: root/perl-install
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
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')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/interactive/gtk.pm5
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);