Gtk::FileChooser::ACTION_OPEN,
nil,
[Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
- fc.set_current_folder(xmldir.attributes['path'])
+ fc.set_current_folder(from_utf8(xmldir.attributes['path']))
fc.transient_for = $main_window
fc.preview_widget = preview = Gtk::Alignment.new(0.5, 0.5, 0, 0).add(f = Gtk::Frame.new.set_shadow_type(Gtk::SHADOW_ETCHED_OUT))
f.add(preview_img = Gtk::Image.new)
def find_subalbum_caption_info(xmldir)
type = find_subalbum_info_type(xmldir)
- return from_utf8(xmldir.attributes["#{type}-captionfile"]), xmldir.attributes["#{type}-caption"]
+ return [ from_utf8(xmldir.attributes["#{type}-captionfile"]), xmldir.attributes["#{type}-caption"] ]
end
def file_size(path)