diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-29 17:31:06 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-29 17:31:06 +0000 |
commit | 8d15ef833af55e3e864b078c52b9e805ada460ed (patch) | |
tree | b0dee447510dea95940161366425e6f3e4920514 | |
parent | 0398cd22877ec54fddd1e5be7a3ad4b6290a9835 (diff) | |
download | draksnapshot-8d15ef833af55e3e864b078c52b9e805ada460ed.tar draksnapshot-8d15ef833af55e3e864b078c52b9e805ada460ed.tar.gz draksnapshot-8d15ef833af55e3e864b078c52b9e805ada460ed.tar.bz2 draksnapshot-8d15ef833af55e3e864b078c52b9e805ada460ed.tar.xz draksnapshot-8d15ef833af55e3e864b078c52b9e805ada460ed.zip |
use Gtk+2's FileChooserDialog (#40717)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247037 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | draksnapshot-config | 17 |
2 files changed, 9 insertions, 11 deletions
@@ -1,3 +1,6 @@ +- configurator: + o use Gtk+2's FileChooserDialog (#40717) + Version 0.15 - 29 September 2008, Thierry Vignaud - applet: 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; }, ), ]), |