summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rwxr-xr-xperl-install/standalone/drakperm15
2 files changed, 9 insertions, 8 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index d67ee6761..f1398aab3 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,4 @@
-- draksplash:
+- drakperm:
o use Gtk+2's FileChooserDialog
Version 11.59 - 29 September 2008
diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm
index 480782d31..ef131b80e 100755
--- a/perl-install/standalone/drakperm
+++ b/perl-install/standalone/drakperm
@@ -302,16 +302,17 @@ sub row_setting_dialog {
$browse->signal_connect(clicked => sub {
- my $file_dlg = Gtk2::FileSelection->new(N("Path selection"));
+ my $file_dlg = gtknew('FileChooserDialog', title => N("Path selection"), action => 'select_folder');
$file_dlg->set_modal(1);
$file_dlg->set_transient_for($dlg);
- $file_dlg->show;
$file_dlg->set_filename($file->get_text);
- $file_dlg->cancel_button->signal_connect(clicked => sub { $file_dlg->destroy });
- $file_dlg->ok_button->signal_connect(clicked => sub {
- $file->set_text($file_dlg->get_filename);
- $file_dlg->destroy;
- });
+ $file_dlg->show;
+ my $answer = $file_dlg->run;
+ if ($answer eq 'ok') {
+ $file->set_text($file_dlg->get_filename);
+ }
+ $file_dlg->hide;
+ $file_dlg->destroy;
});
my %perms;