Last active
February 19, 2017 15:41
-
-
Save tumugin/d63d915adbbc8bcacac7ef56036f7ddc to your computer and use it in GitHub Desktop.
暴力的なパッチ(mikutter-windows用)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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