Thanks, your answer directed me in the right direction.
There might be others solution, but I’m happy with what I’ve found.
Basically, by default, and from theme, the current row is highlighted.
Mainly setting a background color so you can easyly see which row you
You can change this color with Gtk::Widget#modify_base (seeGtk::Widget
doc), but it will still change the whole row.
I then went with disabling the selection, which did work just as I
wanted except you could not double clic a cell to edit it. So I added
this functionnality back. See below.
tw = Gtk::TreeView.new
tw.selection.mode = Gtk::SELECTION_NONE
tw.signal_connect("row-activated") do |me, path, column|
me.set_cursor(path, column, true)
It would have been nice to be able to modify style for each cell, but
I’m not sure it’s feasible, and I don’t want to spend more time on this,
as I have a solution which works exactly as I want it to.
Hope it can help