From cd3d662080f9f11ac994972755081764e8c11cd4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 14 Jun 2001 09:22:30 +0000 Subject: (_ask_file): add parameter path to set the default path where to get the file --- perl-install/my_gtk.pm | 5 +++-- 1 file 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; -- cgit v1.2.1