Re: To share a dirty hack on a treeview



On Wed, 2005-02-16 at 23:43 -0500, muppet wrote:

The fact I hate most is that I need a dummy row (on top) and I can't 
find a way to hide it. This row is needed as an asylum for that 
incorrigible row-highlight-bar of the treeview. If I don't use this 
dummy row, I can still change the color of the cell but it will stay 
hidden under the row highlight till I click on another row.

Not sure why i didn't think of this in IRC, but if you're planning to 
handle selection highlighting yourself, why not just disable the 
built-in selection?  $tree_view->get_selection->set_mode ('none');

By the way, there's no way to clear the highlight you've set up.  ;-)

Because I felt like it, here's a patch to the original version that adds
those suggestions (plus a new gimmick :-).

-- 
Bye,
-Torsten

Attachment: tree_mark_cell.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]