Skip to content

Instantly share code, notes, and snippets.

@tumugin
Last active February 19, 2017 15:41
Show Gist options
  • Save tumugin/d63d915adbbc8bcacac7ef56036f7ddc to your computer and use it in GitHub Desktop.
Save tumugin/d63d915adbbc8bcacac7ef56036f7ddc to your computer and use it in GitHub Desktop.
暴力的なパッチ(mikutter-windows用)
module Gtk::FileChooser
alias filename_orig filename
alias filenames_orig filenames
def filename
orig_path = filename_orig
orig_path ? orig_path.tr('\\', '/') : nil
end
def filenames
orig_names = filenames_orig
orig_names.each do |path|
path.gsub!('\\', '/')
end
orig_names
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment