Friday, April 22, 2011

gnocl::toolBar -style icons

Some of my apps with the following lines have been crashing. Looks like a bug has crept into the toolbar.c module.

set toolBar [gnocl::toolBar -style icons]
$toolBar add item -text "%#New" -tooltip $::TT(new) -onClicked fileNew

Traced the problem. They were arising from the setUnderline function call. I wasn't, nor am I yet, certain what the purpose of this command is. Anyway, the function now checks for a null pointer rather than performing an assert. It works, so we'll stay with until such time as it flags up any other issues.


No comments: