Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
invisible character patch for mikutter
--- core/mui/gtk_mtk.rb 2011-10-04 02:08:16.324056729 +0900
+++ core/mui/gtk_mtk.rb.new 2011-10-04 02:05:46.883627688 +0900
@@ -133,6 +133,7 @@
container = Gtk::HBox.new(false, 0)
input = Gtk::Entry.new
input.text = proc.call(nil)
+ input.invisible_char = "〄".encode("UTF-8").ord
input.visibility = visibility
container.pack_start(Gtk::Label.new(label), false, true, 0) if label
container.pack_start(Gtk::Alignment.new(1.0, 0.5, 0, 0).add(input), true, true, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment