Author: mordante
Date: Sun May 24 15:48:58 2009
New Revision: 35873
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35873&view=rev
Log:
Implement select_action::tshow::select for tgenerator.
Modified:
trunk/src/gui/widgets/generator_private.hpp
Modified: trunk/src/gui/widgets/generator_private.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/generator_private.hpp?rev=35873&r1=35872&r2=35873&view=diff
==============================================================================
--- trunk/src/gui/widgets/generator_private.hpp (original)
+++ trunk/src/gui/widgets/generator_private.hpp Sun May 24 15:48:58 2009
@@ -437,10 +437,9 @@
struct tshow
: public virtual tgenerator_
{
- /** @todo implement when set_visible works. */
- void select(tgrid& /*grid*/, const bool /*show*/)
- {
- //grid->set_visible(show);
+ void select(tgrid& grid, const bool show)
+ {
+ grid.set_visible(show ? twidget::VISIBLE : twidget::HIDDEN);
}
};
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits