Disable old linked widgets method in the listbox.

At the moment the listbox will trigger an assertion failure, when
there's still some code which depends on the old way. The code will soon
entirely be removed.
This commit is contained in:
Mark de Wever 2009-08-09 15:15:06 +00:00
parent c79d2f4e4e
commit fd05e12d11
2 changed files with 6 additions and 1 deletions

View file

@ -152,7 +152,9 @@ twidget* tbuilder_listbox::build() const
* Should the listbox automatically
* enable linked widgets? This feature is
* there for backwards compatibility and
* will be removed in the future.
* will be removed in the future. It needs
* to be set to true now since the old way
* is no longer supported.
*
* @end_table
*

View file

@ -290,6 +290,7 @@ void tlistbox::init_linked_size_widets(twindow& window,
}
ERR_GUI_G << "The listbox uses the "
"deprecated automatic linked widget feature.\n";
assert(false);
for(tgrid::iterator itor = begin; itor != end; ++itor) {
@ -315,6 +316,7 @@ void tlistbox::add_linked_size_widgets(twindow& window,
if(linked_widgets_disabled_) {
return;
}
assert(false);
for(tgrid::iterator itor = begin; itor != end; ++itor) {
@ -340,6 +342,7 @@ void tlistbox::remove_linked_size_widgets(twindow& window,
if(linked_widgets_disabled_) {
return;
}
assert(false);
for(tgrid::iterator itor = begin; itor != end; ++itor) {