[SVN] r8011
Ciarán Walsh
ciawal at gmail.com
Mon Aug 20 20:27:22 UTC 2007
Added support for section headers for popup menus. Sample usage:
require ENV['TM_SUPPORT_PATH'] + '/lib/ui'
TextMate::UI.menu([
{'title' => 'foo', 'header' => 1},
{'title' => 'bar'},
{'title' => 'bar'},
{'title' => 'foo', 'header' => 1},
{'title' => 'bar'},
{'title' => 'bar'},
])
Items with a non-zero 'header' value will be treated as a section header (which is not selectable).
Once a section header is encountered, all regular items under it will be indented.
Changed:
U branches/WIP/Tools/Dialog PlugIn/Dialog.mm
More information about the textmate-dev
mailing list