summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-29 17:44:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-29 17:44:06 +0000
commitcac819a5a47e996de7b13800a62c6354354a2685 (patch)
treee9c052eb54965c95024e499aa84fc47232fe8ea2
parente297999ce2b22a59779365cc9abd1d4b86c30d85 (diff)
downloaddrakx-cac819a5a47e996de7b13800a62c6354354a2685.tar
drakx-cac819a5a47e996de7b13800a62c6354354a2685.tar.gz
drakx-cac819a5a47e996de7b13800a62c6354354a2685.tar.bz2
drakx-cac819a5a47e996de7b13800a62c6354354a2685.tar.xz
drakx-cac819a5a47e996de7b13800a62c6354354a2685.zip
use Gtk+2's FileChooserDialog
-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;