Re: To share a dirty hack on a treeview




On Feb 18, 2005, at 1:23 AM, Kevin C. Krinke wrote:

On Thu, 2005-02-17 at 21:37 -0800, ofey aikon wrote:
I fixed all that ... and added another new gimmick (click on column-header) :)

Since I ripped it a lot, attaching the whole new file instead of a patch.

Not sure if this is the best way to accomplish the desired effect but
attached is a patch to prevent the parent row from being greened at all.

Perhaps instead

   # only allow cell selections on leaves.
   return 0 unless 0 < $model->iter_n_children ($iter);

to allow nesting deeper than just one.

--
That's it! It's one thing for a ghost to scare my children, but it's another to play my theremin!
  - Homer Simpson




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