mozilla/nightlytt — pull request #74 by xabolcs (2012-05-29 23:56:49+00:00)
Title: Convert 'Customize Titlebar' dialog's listbox into tree, and make it's columns resizable. Fixes #25.

Hi!

In this pull request I did the following:
* convert the container from `listbox` to `tree`
* put a `description` to the end to be a placeholder - w/o it, the vbox undersized itself and the lower border of the tree was hiding.
* introduce a new customTreeView object in `paneTitle`
* introduce the new `setupTree` TreeView initializer method in `paneTitle`
* hack a bit to skip some `onClick` event originating from scrollbar
* make tree's columns resizable with a default `1:1:2` ratio
* extend tree default width

The resolution is based on some copy-pasted MDN example. Feel free to review it hard!
For example I don't know why I left the custom treeview code in `paneTitle` instead making it
a local function in `setupTree`.