summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-06-14 09:22:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-06-14 09:22:30 +0000
commitcd3d662080f9f11ac994972755081764e8c11cd4 (patch)
treeeb31fa78a37e5a5e09f60d49a1db3d1812733114 /perl-install/my_gtk.pm
parent23c668556845566269c252f95efa533b271f215d (diff)
downloaddrakx-backup-do-not-use-cd3d662080f9f11ac994972755081764e8c11cd4.tar
drakx-backup-do-not-use-cd3d662080f9f11ac994972755081764e8c11cd4.tar.gz
drakx-backup-do-not-use-cd3d662080f9f11ac994972755081764e8c11cd4.tar.bz2
drakx-backup-do-not-use-cd3d662080f9f11ac994972755081764e8c11cd4.tar.xz
drakx-backup-do-not-use-cd3d662080f9f11ac994972755081764e8c11cd4.zip
(_ask_file): add parameter path to set the default path where to get the file
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 82472840a..8c74624ad 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -661,9 +661,10 @@ sub _ask_okcancel($@) {
}
-sub _ask_file($$) {
- my ($o, $title) = @_;
+sub _ask_file {
+ my ($o, $title, $path) = @_;
my $f = $o->{rwindow} = new Gtk::FileSelection $title;
+ $f->set_filename($path);
$f->ok_button->signal_connect(clicked => sub { $o->{retval} = $f->get_filename ; Gtk->main_quit });
$f->cancel_button->signal_connect(clicked => sub { Gtk->main_quit });
$f->hide_fileop_buttons;