Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4633

Gtk TextView - how to change width of cursor?

$
0
0

I'm using a Gtk TextView in a small Ruby program. The text cursor is a vertical bar, only 1 pixel wide. I have changed its colour to red but it is still barely visible. Can it be made wider?


require "gtk2"tl = Gtk::Window.newvb = Gtk::VBox.new false, 0tl.add vbsw = Gtk::ScrolledWindow.newtview = Gtk::TextView.newtbuf = Gtk::TextBuffer.newtview.set_buffer tbuftview.set_wrap_mode Gtk::TextTag::WRAP_WORDtview.set_justification Gtk::JUSTIFY_FILLfont = Pango::FontDescription.new "Serif, 11"tview.modify_font fontred = Gdk::Color.new 65535, 20000, 20000tview.modify_cursor red, redsw.add tviewvb.pack_start sw, true, true, 0tl.show_alltbuf.set_text %(I'm using a Gtk TextView in a small Ruby program. The text cursor is a vertical bar, only 1 pixel wide. I have changed its colour to red but it is still barely visible. Can it be made wider?)Gtk.main

Viewing all articles
Browse latest Browse all 4633

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>