GLib::ContentType.get_icon fails with error: "no implicit conversion of Module into String (TypeError)".
1 2 3 4 5 6 7 8 9
#!/usr/bin/env ruby require "gtk3" require "glib2" require "gio2" mime_type = "image/jpeg" icon = Gio::ContentType.get_icon(mime_type)
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
gems:
gio2 (2.1.0) glib2 (2.1.0) gtk3 (2.1.0)
Thanks for your report! I've fixed it in master!
Log in to post a comment.
Thanks for your report!
I've fixed it in master!