summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config17
1 files changed, 6 insertions, 11 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index b12d8dc..1e7000f 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -153,21 +153,16 @@ gtkadd($my_win->{window},
clicked => sub {
my $file_dlg;
$file_dlg =
- gtknew('FileSelection', title => N("Path selection"),
- ok_button => {
- clicked => sub {
- $where->set_text($file_dlg->get_filename);
- $file_dlg->destroy;
- },
- },
- cancel_button => {
- clicked => sub { $file_dlg->destroy },
- },
- );
+ gtknew('FileChooserDialog', title => N("Path selection"), action => 'select_folder');
$file_dlg->set_transient_for($my_win->{real_window});
$file_dlg->set_modal(1);
$file_dlg->set_filename($where->get_text);
$file_dlg->show;
+ my $answer = $file_dlg->run;
+ if ($answer eq 'ok') {
+ $where->set_text($file_dlg->get_filename);
+ }
+ $file_dlg->destroy;
},
),
]),