end
}
}
+ $workingdir = path
show_entries
$execute.sensitive = true
return nil
nil,
[Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
fc.transient_for = $main_window
+ if $workingdir
+ fc.current_folder = $workingdir
+ end
ok = false
while !ok
if fc.run == Gtk::Dialog::RESPONSE_ACCEPT
if normal
pathbutton = Gtk::Button.new.add(pathlabel = Gtk::Label.new.set_markup(utf8(_("<i>(unset)</i>"))))
+ lastpath = $workingdir
pathbutton.signal_connect('clicked') {
fc = Gtk::FileChooserDialog.new(utf8(_("Specify the directory where to move the pictures to")),
nil,
nil,
[Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
fc.transient_for = dialog
+ fc.current_folder = lastpath
if fc.run == Gtk::Dialog::RESPONSE_ACCEPT
pathlabel.text = fc.filename
- end
+ end
+ lastpath = fc.filename
fc.destroy
}
combo.signal_connect('changed') {